Skip to content
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

add specific support to Gradle plugin publish plugin #543

Merged
merged 2 commits into from Mar 23, 2023

Conversation

gabrielittner
Copy link
Collaborator

@gabrielittner gabrielittner commented Mar 22, 2023

com.gradle.plugin-publish will already create a sources jar and javadoc jar automatically and attach it to the publication which then conflicts with the ones added by us. To resolve this I'm adding an extra Platform for that plugin which which will not add anything. In the main plugin com.gradle.plugin-publish is ranked higher than java-gradle-plugin so that it will be prioritized and avoid this issue.

With this we'll be incompatible with 0.21.0 of com.gradle.plugin-publish because that didn't create sources and javadoc jars.

Closes #542
Closes #536

/**
* To be used for `com.gradle.plugin-publish` projects. Uses the default publication that gets created by that plugin.
*/
class GradlePublishPlugin : Platform() {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
class GradlePublishPlugin : Platform() {
object GradlePublishPlugin : Platform() {

?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Object is awkward to use from Groovy unfortunately

@gabrielittner gabrielittner merged commit 38949d9 into main Mar 23, 2023
6 checks passed
@gabrielittner gabrielittner deleted the plugin-publish branch March 23, 2023 17:05
@jaredsburrows
Copy link
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants