File tree Expand file tree Collapse file tree 3 files changed +2
-26
lines changed
Expand file tree Collapse file tree 3 files changed +2
-26
lines changed Original file line number Diff line number Diff line change 3535 ORG_GRADLE_PROJECT_sonatypePassword : ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
3636 ORG_GRADLE_PROJECT_signingKey : ${{ secrets.SIGNING_KEY }}
3737 ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.SIGNING_PASSWORD }}
38- run : ./gradlew publishSnapshot
38+ run : ./gradlew publishToSonatype
Original file line number Diff line number Diff line change 2626 ORG_GRADLE_PROJECT_sonatypePassword : ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
2727 ORG_GRADLE_PROJECT_signingKey : ${{ secrets.SIGNING_KEY }}
2828 ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.SIGNING_PASSWORD }}
29- run : ./gradlew publishRelease
29+ run : ./gradlew publishToSonatype closeAndReleaseStagingRepositories
Original file line number Diff line number Diff line change @@ -39,27 +39,3 @@ nexusPublishing {
3939 }
4040 }
4141}
42-
43- tasks.register(" publishRelease" ) {
44- group = " publishing"
45- description = " Publish to Maven Central (iff this is a release version)."
46-
47- onlyIf { ! isSnapshot() }
48-
49- if (! isSnapshot()) {
50- dependsOn(" publishToSonatype" , " closeAndReleaseStagingRepositories" )
51- }
52- }
53-
54- tasks.register(" publishSnapshot" ) {
55- group = " publishing"
56- description = " Publish to Maven Central (iff this is a snapshot version)."
57-
58- onlyIf { isSnapshot() }
59-
60- if (isSnapshot()) {
61- dependsOn(" publishToSonatype" )
62- }
63- }
64-
65- fun isSnapshot () = version.toString().endsWith(" -SNAPSHOT" )
You can’t perform that action at this time.
0 commit comments