-
-
Notifications
You must be signed in to change notification settings - Fork 35
Update Maven Publish Plugin #902
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
Conversation
hm, the artifacts check is failing - could you verify why? I can't grasp from the build job logs what's missing https://github.com/getsentry/sentry-android-gradle-plugin/actions/runs/15455714004/job/43507512990?pr=902 |
This updates the Maven Publish Plugin which should unblock enabling the configuration cache and also help with updating to Gradle 8.x in this repo. The changelog for all the versions is here: https://github.com/vanniktech/gradle-maven-publish-plugin/blob/main/CHANGELOG.md#version-0180-2021-09-13 Note, we cannot update to a higher version until the build itself is build with Gradle 8.x or higher. The api to configure signing was changed in 0.20.0 this is why the gradle property was adjusted.
7f28261
to
69cf8ec
Compare
69cf8ec
to
a932f07
Compare
@@ -49,7 +49,7 @@ jobs: | |||
- name: Verify artifact contents | |||
shell: bash | |||
run: | | |||
zipfile=$(ls -1 plugin-build/build/distributions | grep -v "PluginMarker") | |||
zipfile=$(ls -1 plugin-build/build/distributions | grep -v "PluginMarker" | grep -v ".tar") |
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.
@romtsn seems there is now an additional .tar
artifact which is built since we call assemble
which assembles everything. i just filtered it out here.
@@ -226,7 +225,7 @@ distributions { | |||
main { | |||
contents { | |||
from("build${sep}libs") | |||
from("build${sep}publications${sep}maven") | |||
from("build${sep}publications${sep}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.
@romtsn figured it out. we were grabbing the maven publication from the wrong folder and that wrong folder was removed in the update.
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.
awesome, I guess we should also test how it works releasing with craft, but we'll find out when doing the next release :)
📜 Description
This updates the Maven Publish Plugin which should unblock enabling the
configuration cache and also help with updating to Gradle 8.x in this
repo.
The changelog for all the versions is here: https://github.com/vanniktech/gradle-maven-publish-plugin/blob/main/CHANGELOG.md#version-0180-2021-09-13
Note, we cannot update to a higher version until the build itself is
build with Gradle 8.x or higher.
The api to configure signing was changed in 0.20.0 this is why the
gradle property was adjusted.
#skip-changelog
💡 Motivation and Context
💚 How did you test it?
📝 Checklist
🔮 Next steps