ANDROID-16206 Migrate Sonatype publishing to Central Portal#51
Merged
Conversation
haynlo
commented
Jun 18, 2025
| kapt.use.worker.api=true | ||
|
|
||
| # This will be default on AGP 8.0 | ||
| android.r8.failOnMissingClasses=true |
Contributor
Author
There was a problem hiding this comment.
haynlo
commented
Jun 18, 2025
Comment on lines
+9
to
+10
| nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/")) | ||
| snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/")) |
Contributor
Author
There was a problem hiding this comment.
haynlo
commented
Jun 18, 2025
| plugins { | ||
| id("io.gitlab.arturbosch.detekt").version("1.18.1") | ||
| id 'io.github.gradle-nexus.publish-plugin' version '1.3.0' apply false | ||
| id 'io.github.gradle-nexus.publish-plugin' version '2.0.0' apply false |
Contributor
Author
There was a problem hiding this comment.
haynlo
commented
Jun 18, 2025
| ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }} | ||
| ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEYID }} | ||
| run: "bash ./gradlew publishReleasePublicationToSonatypeRepository -DLIBRARY_VERSION=${{ github.event.release.tag_name }} publishNoopPublicationToSonatypeRepository -DLIBRARY_VERSION=${{ github.event.release.tag_name }} --max-workers 1 closeAndReleaseStagingRepository" | ||
| run: "bash ./gradlew publishReleasePublicationToSonatypeRepository -DLIBRARY_VERSION=${{ github.event.release.tag_name }} publishNoopPublicationToSonatypeRepository -DLIBRARY_VERSION=${{ github.event.release.tag_name }} --max-workers 1 closeAndReleaseStagingRepositories" |
Contributor
Author
There was a problem hiding this comment.
dagonco
approved these changes
Jun 18, 2025
DevPabloGarcia
approved these changes
Jun 19, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎟️ Jira ticket
ANDROID-16206
🥅 What's the goal?
Migrate Sonatype publishing to Central Portal following the migration guide.
🚧 How do we do it?
ℹ️ Not related (poyake): Remove this declaration
android.r8.failOnMissingClasses=truesince it is ignored andtrueby default in AGP >= 8.0 (current is 8.2.2)📘 Documentation changes?
https://confluence.tid.es/pages/viewpage.action?spaceKey=CTO&title=Migration+from+OSSRH+to+Central+Portal#Updating+Open+Source+Projects
🧪 How can I test this?
Snapshot artifact has been uploaded successfully in Central Portal: 5.0.1.1-SNAPSHOT
https://github.com/Telefonica/tweaks/actions/runs/15728382440
https://central.sonatype.com/service/rest/repository/browse/maven-snapshots/com/telefonica/tweaks/