forked from mirrors/cobblemon
13 lines
412 B
Kotlin
13 lines
412 B
Kotlin
plugins {
|
|
id("cobblemon.root-conventions")
|
|
id ("net.nemerosa.versioning") version "2.8.2"
|
|
}
|
|
|
|
version = "${project.property("mod_version")}+${project.property("mc_version")}"
|
|
|
|
val isSnapshot = project.property("snapshot")?.equals("true") ?: false
|
|
if (isSnapshot) {
|
|
val fixedBranchName = versioning.info.branch.substringAfter("/")
|
|
version = "$version-${fixedBranchName}-${versioning.info.build}"
|
|
}
|