Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
NEXUS_USER: ${{ secrets.NEXUS_RELEASE_USER }}
NEXUS_PASS: ${{ secrets.NEXUS_RELEASE_PASSWORD }}
run: |
./gradlew publishReleasePublicationToSnapshotsRepository -DLIBRARY_VERSION=${{ github.event.inputs.snapshot-version }}-SNAPSHOT
./gradlew publishReleasePublicationToMavenRepository -DLIBRARY_VERSION=${{ github.event.inputs.snapshot-version }}-SNAPSHOT
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The task was wrong

plugin:
runs-on: [ self-hosted-org, linux ]
container:
Expand Down
4 changes: 3 additions & 1 deletion include-build/mavencentral.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ publishing {
username System.env.NEXUS_USER
password System.env.NEXUS_PASS
}
url "https://nexusng.tuenti.io/repository/maven-release-private/"
def releasesRepoUrl = "https://nexusng.tuenti.io/repository/maven-release-private/"
def snapshotsRepoUrl = "https://nexusng.tuenti.io/repository/maven-snapshot-private/"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
Comment on lines -11 to +13
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We have to define a different repo URL, taking into account the version suffix.

}
}
publications {
Expand Down
4 changes: 3 additions & 1 deletion mavencentral.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ publishing {
username System.env.NEXUS_USER
password System.env.NEXUS_PASS
}
url "https://nexusng.tuenti.io/repository/maven-release-private/"
def releasesRepoUrl = "https://nexusng.tuenti.io/repository/maven-release-private/"
def snapshotsRepoUrl = "https://nexusng.tuenti.io/repository/maven-snapshot-private/"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
Comment on lines -20 to +22
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The same for the library

}
}
publications {
Expand Down