Skip to content

Commit 1082d85

Browse files
committed
fix windows file locking issue
1 parent 449ff1a commit 1082d85

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ allprojects {
7676
jvmArgs("-XX:ErrorFile=${rootProject.file("build/reports").absolutePath}/hs_err_pid%p.log")
7777
if (System.getProperty("os.name").contains("Windows")) {
7878
jvmArgs("-XX:OnError=powershell.exe ${rootProject.file("dump.ps1")}")
79+
// Add Windows-specific JVM args to handle file locking
80+
jvmArgs("-Djava.io.tmpdir=${System.getProperty("java.io.tmpdir")}")
81+
jvmArgs("-XX:+UnlockExperimentalVMOptions")
7982
} else {
8083
jvmArgs("-XX:OnError=ps auxww")
8184
}

0 commit comments

Comments
 (0)