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 75
75
run : ./gradlew writeActualVersion
76
76
&& export PROJECT_VERSION=`cat version.actual`
77
77
&& ./build.sh
78
- && ./gradlew publishToSonatype githubRelease # closeAndReleaseStagingRepository releaseSummary
78
+ && ./gradlew publishToSonatype githubRelease closeAndReleaseStagingRepository releaseSummary
79
79
env :
80
80
GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
81
81
NEXUS_TOKEN_USER : ${{secrets.NEXUS_TOKEN_USER}}
Original file line number Diff line number Diff line change @@ -85,6 +85,12 @@ nexusPublishing {
85
85
}
86
86
}
87
87
88
+ task writeActualVersion {
89
+ doLast {
90
+ file(" version.actual" ) << " $version "
91
+ }
92
+ }
93
+
88
94
def isSnapshot = version. endsWith(" -SNAPSHOT" )
89
95
90
96
if (isSnapshot) {
@@ -99,8 +105,17 @@ if (isSnapshot) {
99
105
}
100
106
}
101
107
102
- task writeActualVersion {
108
+ tasks . register( " releaseSummary " ) {
103
109
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
+ }
105
120
}
106
121
}
You can’t perform that action at this time.
0 commit comments