Skip to content

Commit e6657d5

Browse files
committed
Use releaseVersion instead of version
1 parent 81c65b6 commit e6657d5

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ subprojects { subProject ->
133133
allprojects { currentProj ->
134134

135135
// To update the version number, change releaseVersion in file release.gradle.
136-
version = releaseVersion
137136

138137
tasks.withType(JavaCompile).configureEach {
139138
options.fork = true
@@ -419,7 +418,7 @@ tasks.register("version") {
419418
description = "Print Checker Framework version"
420419
group = "Documentation"
421420
doLast {
422-
println(version)
421+
println(releaseVersion)
423422
}
424423
}
425424

@@ -530,7 +529,7 @@ javadoc.dependsOn(allJavadoc)
530529
tasks.register("zip", Zip) {
531530
description = "Creates a zip archive for the Checker Framework."
532531
dependsOn("buildAll")
533-
archiveFileName = "checker-framework-${version}.zip"
532+
archiveFileName = "checker-framework-${releaseVersion}.zip"
534533
destinationDirectory = layout.buildDirectory
535534
into("checker-framework-${releaseVersion}")
536535

@@ -838,7 +837,7 @@ subprojects {
838837
}
839838
}
840839
manifest {
841-
attributes("Implementation-Version": "${project.version}")
840+
attributes("Implementation-Version": "${releaseVersion}")
842841
attributes("Implementation-URL": "https://checkerframework.org")
843842
if (!archiveFileName.get().endsWith("source.jar") && !archiveFileName.get().startsWith("checker-qual")) {
844843
attributes("Automatic-Module-Name": "org.checkerframework." + project.name.replaceAll("-", "."))

0 commit comments

Comments
 (0)