Skip to content

Commit

Permalink
derive the version from git
Browse files Browse the repository at this point in the history
  • Loading branch information
pschichtel committed Jul 3, 2024
1 parent 9d78dbf commit 5eff708
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
plugins {
`maven-publish`
id("io.github.gradle-nexus.publish-plugin") version "2.0.0"
id("pl.allegro.tech.build.axion-release") version "1.16.1" // this is the last version that supports Java 8
}

scmVersion {
tag {
prefix = "javacan-"
}
nextVersion {
suffix = "SNAPSHOT"
separator = "-"
}
}

val gitVersion: String = scmVersion.version

allprojects {
group = "tel.schich"
version = "3.5.0-SNAPSHOT"
version = gitVersion
}

nexusPublishing {
Expand Down

0 comments on commit 5eff708

Please sign in to comment.