File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 7575 run : ./gradlew writeActualVersion
7676 && export PROJECT_VERSION=`cat version.actual`
7777 && ./build.sh
78- && ./gradlew publishToSonatype githubRelease # closeAndReleaseStagingRepository releaseSummary
78+ && ./gradlew publishToSonatype githubRelease closeAndReleaseStagingRepository releaseSummary
7979 env :
8080 GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
8181 NEXUS_TOKEN_USER : ${{secrets.NEXUS_TOKEN_USER}}
Original file line number Diff line number Diff line change @@ -85,6 +85,12 @@ nexusPublishing {
8585 }
8686}
8787
88+ task writeActualVersion {
89+ doLast {
90+ file(" version.actual" ) << " $version "
91+ }
92+ }
93+
8894def isSnapshot = version. endsWith(" -SNAPSHOT" )
8995
9096if (isSnapshot) {
@@ -99,8 +105,17 @@ if (isSnapshot) {
99105 }
100106}
101107
102- task writeActualVersion {
108+ tasks . register( " releaseSummary " ) {
103109 doLast {
104- file(" version.actual" ) << " $version "
110+ if (isSnapshot) {
111+ println " RELEASE SUMMARY\n " +
112+ " SNAPSHOTS released to: https://s01.oss.sonatype.org/content/repositories/snapshots/org/mockito/kotlin/mockito-kotlin\n " +
113+ " Release to Maven Central: SKIPPED FOR SNAPSHOTS\n " +
114+ " Github releases: SKIPPED FOR SNAPSHOTS"
115+ } else {
116+ println " RELEASE SUMMARY\n " +
117+ " Release to Maven Central (available after delay): https://repo1.maven.org/maven2/org/mockito/kotlin/mockito-kotlin/\n " +
118+ " Github releases: https://github.com/mockito/mockito-kotlin/releases"
119+ }
105120 }
106121}
You can’t perform that action at this time.
0 commit comments