Skip to content

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

Merged
merged 4 commits into from
Jun 5, 2025
Merged

Conversation

runningcode
Copy link
Contributor

📜 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

  • I reviewed the submitted code
  • I added tests to verify the changes
  • I updated the docs if needed
  • No breaking changes

🔮 Next steps

@romtsn
Copy link
Member

romtsn commented Jun 5, 2025

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.
@runningcode runningcode force-pushed the no/update-maven-publish-plugin branch from 7f28261 to 69cf8ec Compare June 5, 2025 12:50
@runningcode runningcode force-pushed the no/update-maven-publish-plugin branch from 69cf8ec to a932f07 Compare June 5, 2025 13:15
@@ -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")
Copy link
Contributor Author

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")
Copy link
Contributor Author

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.

Copy link
Member

@romtsn romtsn left a 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 :)

@runningcode runningcode merged commit 1d9ce85 into main Jun 5, 2025
19 checks passed
@runningcode runningcode deleted the no/update-maven-publish-plugin branch June 5, 2025 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants