-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to maven publish plugin for publishing #96
Conversation
@@ -54,10 +55,6 @@ publishing { | |||
artifactId = 'sort-gradle-dependencies-dist' | |||
artifact shadowDistZip | |||
} | |||
app(MavenPublication) { | |||
artifactId = 'sort-gradle-dependencies-app' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is created automatically by the plugin
@@ -16,11 +16,5 @@ class LibConvention : Plugin<Project> { | |||
|
|||
override fun apply(target: Project): Unit = target.run { | |||
pluginManager.apply(BaseConvention::class.java) | |||
|
|||
extensions.configure(JavaPluginExtension::class.java) { j -> | |||
// We specifically don't want either of these artifacts on the app project |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Handled automatically by the plugin when dokka is present
This is almost ready to merge.
|
.github/workflows/publish.yml
Outdated
# TODO from the square side | ||
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.TODO }} | ||
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.TODO }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Validate.
This migrates the project to use the maven publish plugin and is functionally equivalent to the artifacts published with the previous plugin infrastructure.
Also opportunistically updates gradle, develocity, and kotlin along the way