Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ jobs:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }}
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEYID }}
NEXUS_USER: ${{ secrets.NEXUS_RELEASE_USER }}
NEXUS_PASS: ${{ secrets.NEXUS_RELEASE_PASSWORD }}
run: |
./gradlew publishReleasePublicationToSonatypeRepository -DLIBRARY_VERSION=${{ github.event.release.tag_name }} --max-workers 1 closeAndReleaseStagingRepository
./gradlew publishReleasePublicationToMavenRepository -DLIBRARY_VERSION=${{ github.event.release.tag_name }}
cd include-build
../gradlew publishGradlePluginPublicationToMavenRepository -DLIBRARY_VERSION=${{ github.event.release.tag_name }}
Copy link
Contributor

@jeslat jeslat Aug 21, 2025

Choose a reason for hiding this comment

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

I think these two lines are not necessary, as we don't have mavencentral.gradle inside include-build anymore

plugin:
runs-on: ubuntu-latest
steps:
Expand Down
10 changes: 10 additions & 0 deletions mavencentral.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ apply plugin: 'maven-publish'
apply plugin: 'signing'

publishing {
repositories {
maven {
credentials {
username System.env.NEXUS_USER
password System.env.NEXUS_PASS
}
url "https://nexusng.tuenti.io/repository/maven-release-private/"
}
}
publications {
release(MavenPublication) {
groupId 'com.telefonica'
Expand Down Expand Up @@ -61,6 +70,7 @@ afterEvaluate {
tasks.getByName("publishReleasePublicationToMavenLocal").dependsOn("assembleRelease")
tasks.getByName("publishReleasePublicationToSonatypeRepository").dependsOn("assembleRelease")
tasks.getByName("signReleasePublication").dependsOn("assembleRelease")
tasks.getByName("publishGradlePluginPublicationToMavenRepository").dependsOn("assembleRelease")
}

signing {
Expand Down
Loading