Skip to content

Commit 436f7ea

Browse files
authored
Merge pull request #4 from build-extensions-oss/correct-test
Correct test
2 parents 766deb4 + 0d20eb0 commit 436f7ea

File tree

2 files changed

+291
-305
lines changed

2 files changed

+291
-305
lines changed

build.gradle.kts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,13 @@ subprojects {
3333
tasks.withType<Test> {
3434
useJUnitPlatform()
3535
// store all temporary results inside the Gradle folder
36-
systemProperty("java.io.tmpdir", layout.buildDirectory.dir("tmp"))
36+
val localTempFolder = layout.buildDirectory.dir("tmp").get().asFile
37+
systemProperty("java.io.tmpdir", localTempFolder.absolutePath)
38+
39+
doFirst {
40+
// create the folder if needed
41+
localTempFolder.mkdirs()
42+
}
3743
}
3844

3945
plugins.withType<MavenPublishPlugin> {

0 commit comments

Comments
 (0)