File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 8282 java-version : 17
8383
8484 - name : Build and publish to Bintray/MavenCentral
85- run : ./build.sh
85+ run : ./gradlew writeActualVersion
86+ && export PROJECT_VERSION=`cat version.actual`
87+ && ./build.sh
8688 && ./gradlew publishToSonatype githubRelease closeAndReleaseStagingRepositories releaseSummary
8789 env :
8890 GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
Original file line number Diff line number Diff line change @@ -111,6 +111,12 @@ tasks {
111111 }
112112}
113113
114+ tasks. register(" writeActualVersion" ) {
115+ doLast {
116+ file(" version.actual" ) << " $version "
117+ }
118+ }
119+
114120tasks. register(" releaseSummary" ) {
115121 doLast {
116122 if (isSnapshot) {
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ val currentScalaVersion = "2.13.16"
77inThisBuild(
88 Seq (
99 scalaVersion := currentScalaVersion,
10+ // Load version from the file so that Gradle/Shipkit and SBT use the same version
11+ version := sys.env.get(" PROJECT_VERSION" ).get
1012 )
1113)
1214
You can’t perform that action at this time.
0 commit comments