Skip to content

Commit 1a17499

Browse files
committed
build: fix version detection
1 parent 7d86e09 commit 1a17499

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ val backend = gradle.includedBuilds.last()
2222

2323
val versionFromBackend by lazy {
2424
val versions = Properties().apply { load(backend.projectDir.resolve("gradle.properties").inputStream()) }
25-
val suffix = property("socha.version.suffix").toString().takeUnless { it.isBlank() }?.let { "-$it" }.orEmpty()
25+
val suffix = versions["socha.version.suffix"].toString().takeUnless { it.isBlank() }?.let { "-$it" }.orEmpty()
2626
arrayOf("year", "minor", "patch").map { versions["socha.version.$it"].toString().toInt() }.joinToString(".") + suffix
2727
}
2828

@@ -124,7 +124,7 @@ tasks {
124124
}
125125

126126
run.configure {
127-
workingDir(buildDir.resolve("tmp"))
127+
workingDir(buildDir.resolve("run"))
128128
doFirst {
129129
workingDir.mkdirs()
130130
}

0 commit comments

Comments
 (0)