-
Notifications
You must be signed in to change notification settings - Fork 38
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
Use maven publish plugin for central publishing #276
Conversation
This simplifies setup using the gradle maven publish plugin for publishing to central. This removes jcenter publishing, but publishing just to central covers jcenter since it proxies it anyway. https://github.com/vanniktech/gradle-maven-publish-plugin This requires added local gradle properties (recommended to put them in your ~/.gradle/gradle.properties) for signing and auth, described here: https://github.com/vanniktech/gradle-maven-publish-plugin#where-to-upload-to Most significantly, this automatically handles publishing the gradle plugin marker artifact as well so that it can be used directly in `plugins {...}`
Hey Zac - just a note that publishing to Bintray is now a requirement again. The reason we were doing it is that anyone using a wildcard dependency with only
I believe this is down to Bintray searching its own artefacts but not mavenCentral's when a wildcard is supplied. Therefore unfortunately unless there's a workaround that supports this behaviour we need to continue publishing artefacts to Bintray. |
jcenter never ceases to amaze me with how terrible it is for the JVM ecosystem. I'll try update this to support publishing there too, likely via script like |
Their API and plugin are both in bad shape and I don't want to deal with it
CI failure seems like it might be a flake or caching issue? |
Hi Zac, I tried this out after resolving the conflicts against the
This seems to result in only the |
Let me take a look and test this out locally |
b1ea9d5
to
f6e7a85
Compare
@fractalwrench can you test again? I think the install task issue was due to a previous configuration being leftover that I removed in f6e7a85. I see all the requisite files when I install locally I don't really understand these errors from the bintray plugin
The bintray plugin is... not good. We use jfrog internally in combination with this plugin for publishing, could you try the latest change with |
This seems to work nicely when installing locally, after setting the sourceCompatibility to JDK 8 explicitly. It also appears to upload the correct artefacts to Sonatype although I've not tried resolving the dependency from the staging repository as of yet. The bintray publish task seems to have advanced onto a new error message:
I tried altering the URL to use
Also I noticed that |
Hey @ZacSweers, Just to let you know this has now been released in V5.7.7. |
Re-publish of #256
This simplifies setup using the gradle maven publish plugin for publishing to central. This removes jcenter publishing, but publishing just to central covers jcenter since it proxies it anyway.
https://github.com/vanniktech/gradle-maven-publish-plugin
This requires added local gradle properties (recommended to put them in your ~/.gradle/gradle.properties) for signing and auth, described here: https://github.com/vanniktech/gradle-maven-publish-plugin#where-to-upload-to
Most significantly, this automatically handles publishing the gradle plugin marker artifact as well so that it can be used directly in
plugins {...}
This also makes snapshots development (
./gradlew uploadArchives
when the version ends in-SNAPSHOT
) and local development./gradlew install
) easierResolves #267