File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 9797 java-version : 8
9898
9999 - name : Build and release
100- run : ./gradlew githubRelease publishToSonatype # closeAndReleaseStagingRepository
100+ run : ./gradlew githubRelease publishToSonatype closeAndReleaseStagingRepository
101101 env :
102102 GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
103103 NEXUS_TOKEN_USER : ${{secrets.NEXUS_TOKEN_USER}}
Original file line number Diff line number Diff line change @@ -34,12 +34,16 @@ tasks.named("githubRelease") {
3434 githubToken = System . getenv(" GITHUB_TOKEN" )
3535 newTagRevision = System . getenv(" GITHUB_SHA" )
3636 releaseTag = project. version
37+ releaseName = project. version
3738}
3839
3940nexusPublishing {
4041 repositories {
4142 if (System . getenv(" NEXUS_TOKEN_PWD" )) {
42- sonatype {
43+ sonatype { // Publishing to: https://s01.oss.sonatype.org (faster instance)
44+ nexusUrl = uri(" https://s01.oss.sonatype.org/service/local/" )
45+ snapshotRepositoryUrl = uri(" https://s01.oss.sonatype.org/content/repositories/snapshots/" )
46+
4347 username = System . getenv(" NEXUS_TOKEN_USER" )
4448 password = System . getenv(" NEXUS_TOKEN_PWD" )
4549 }
You can’t perform that action at this time.
0 commit comments