Skip to content

Commit 5eff708

Browse files
committed
derive the version from git
1 parent 9d78dbf commit 5eff708

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

build.gradle.kts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
11
plugins {
22
`maven-publish`
33
id("io.github.gradle-nexus.publish-plugin") version "2.0.0"
4+
id("pl.allegro.tech.build.axion-release") version "1.16.1" // this is the last version that supports Java 8
45
}
56

7+
scmVersion {
8+
tag {
9+
prefix = "javacan-"
10+
}
11+
nextVersion {
12+
suffix = "SNAPSHOT"
13+
separator = "-"
14+
}
15+
}
16+
17+
val gitVersion: String = scmVersion.version
18+
619
allprojects {
720
group = "tel.schich"
8-
version = "3.5.0-SNAPSHOT"
21+
version = gitVersion
922
}
1023

1124
nexusPublishing {

0 commit comments

Comments
 (0)