Skip to content

Commit 04660c6

Browse files
committed
fix jbang dir
1 parent 98cbfac commit 04660c6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

jablib/build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ import org.gradle.api.tasks.testing.logging.TestExceptionFormat
77
import java.net.URI
88
import java.util.*
99

10+
// Ensure JBang cache directory exists to avoid task validation error
11+
// Fixes: Property 'installDir' specifies directory '.../.gradle/caches/jbang' which doesn't exist.
12+
val jbangCacheDir = File(System.getProperty("user.home"), ".gradle/caches/jbang")
13+
if (!jbangCacheDir.exists()) {
14+
jbangCacheDir.mkdirs()
15+
}
16+
1017
plugins {
1118
id("org.jabref.gradle.module")
1219
id("org.jabref.gradle.feature.download")

0 commit comments

Comments
 (0)