Skip to content

Commit b4e9aee

Browse files
committed
chore: fix missing maven publication version
1 parent 04f1170 commit b4e9aee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ plugins {
88
}
99

1010
if (hasProperty("release")) {
11+
val releaseVersion = extra["shapeshift.version"].toString()
1112
subprojects {
1213
apply(plugin = "java-library")
1314
apply(plugin = "signing")
1415
apply(plugin = "maven-publish")
1516
apply(plugin = "org.jetbrains.dokka")
1617
group = "dev.krud"
17-
version = extra["shapeshift.version"] ?: error("shapeshift.version is not set")
18+
version = releaseVersion
1819
java.sourceCompatibility = JavaVersion.VERSION_1_8
1920
val isSnapshot = version.toString().endsWith("-SNAPSHOT")
2021
val repoUri = if (isSnapshot) {
@@ -33,6 +34,7 @@ if (hasProperty("release")) {
3334
publishing {
3435
publications.create<MavenPublication>("maven") {
3536
from(components["java"])
37+
version = releaseVersion
3638
repositories {
3739
maven {
3840
name = "OSSRH"

0 commit comments

Comments
 (0)