-
Notifications
You must be signed in to change notification settings - Fork 867
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
Publish gradle-plugins to Maven Central #5333
Publish gradle-plugins to Maven Central #5333
Conversation
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.
just a couple of questions to help my understanding for when things don't go as planned 😂
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }} | ||
with: | ||
# Don't use publishToSonatype since we don't want to publish the marker artifact | ||
arguments: build publishPlugins publishPluginMavenPublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository |
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.
where does the publishPluginMavenPublicationToSonatypeRepository
task come from?
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.
Nexus publish plugin
afterEvaluate { | ||
publishing { | ||
publications { | ||
named<MavenPublication>("pluginMaven") { |
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.
does named
imply that this task already exists?
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.
Yeah Gradle plugin publish plugin creates it
Co-authored-by: Trask Stalnaker <[email protected]>
* Publish gradle-plugins to Maven Central * Update .github/workflows/release-gradle-plugins.yml Co-authored-by: Trask Stalnaker <[email protected]> Co-authored-by: Trask Stalnaker <[email protected]>
Also makes sure to target Java 8 bytecode so the plugin doesn't require other builds to be using Java 11
Fixes #5330