File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727 if : ${{ startsWith(github.ref, 'refs/tags/') }}
2828 run : |
2929 version="${GITHUB_REF_NAME#v}"
30- nix develop --command env VERSION="$version" \
31- gradle --no-daemon publishAndReleaseToMavenCentral
30+ nix develop --command gradle --no-daemon \
31+ "-PreleaseVersion=$version" publishAndReleaseToMavenCentral
3232 env :
3333 ORG_GRADLE_PROJECT_mavenCentralPassword : ${{ secrets.SONATYPE_PASSWORD }}
3434 ORG_GRADLE_PROJECT_mavenCentralUsername : ${{ secrets.SONATYPE_USERNAME }}
Original file line number Diff line number Diff line change @@ -25,20 +25,8 @@ plugins {
2525 alias(libs.plugins.vanniktech.maven.publish) apply false
2626}
2727
28- val computedVersion =
29- providers
30- .gradleProperty(" releaseVersion" )
31- .orElse(providers.environmentVariable(" VERSION" ).map { it.removePrefix(" v" ) })
32- .orElse(
33- providers.provider {
34- rootProject.file(" VERSION" ).takeIf { it.isFile }?.readText()?.trim()?.takeIf {
35- it.isNotEmpty()
36- } ? : " 0.0.0-SNAPSHOT"
37- }
38- )
39-
4028group = " com.sourcegraph"
41- version = computedVersion .get()
29+ version = providers.gradleProperty( " releaseVersion " ).orElse( " 0.0.0-SNAPSHOT " ) .get()
4230
4331val javacModuleOptions =
4432 listOf (
You can’t perform that action at this time.
0 commit comments