File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -8,13 +8,14 @@ plugins {
8
8
}
9
9
10
10
if (hasProperty(" release" )) {
11
+ val releaseVersion = extra[" shapeshift.version" ].toString()
11
12
subprojects {
12
13
apply (plugin = " java-library" )
13
14
apply (plugin = " signing" )
14
15
apply (plugin = " maven-publish" )
15
16
apply (plugin = " org.jetbrains.dokka" )
16
17
group = " dev.krud"
17
- version = extra[ " shapeshift.version " ] ? : error( " shapeshift.version is not set " )
18
+ version = releaseVersion
18
19
java.sourceCompatibility = JavaVersion .VERSION_1_8
19
20
val isSnapshot = version.toString().endsWith(" -SNAPSHOT" )
20
21
val repoUri = if (isSnapshot) {
@@ -33,6 +34,7 @@ if (hasProperty("release")) {
33
34
publishing {
34
35
publications.create<MavenPublication >(" maven" ) {
35
36
from(components[" java" ])
37
+ version = releaseVersion
36
38
repositories {
37
39
maven {
38
40
name = " OSSRH"
You can’t perform that action at this time.
0 commit comments