We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f41e45a commit a14a283Copy full SHA for a14a283
build.gradle.kts
@@ -24,6 +24,15 @@ java {
24
targetCompatibility = JavaVersion.VERSION_11
25
}
26
27
+tasks.withType(Jar::class).configureEach {
28
+ if(System.getenv("JENKINS_HOME") != null) {
29
+ archiveVersion.set(project.version.toString() + "_" + System.getenv("BUILD_NUMBER") + "-SNAPSHOT")
30
+ println("Version => " + project.version.toString())
31
+ } else {
32
+ archiveVersion.set(project.version.toString() + "-SNAPSHOT")
33
+ }
34
+}
35
+
36
tasks.withType(JavaCompile::class).configureEach {
37
options.apply {
38
encoding = "utf-8" // Consistent source file encoding
0 commit comments