Skip to content

Commit e4cead0

Browse files
committed
Fix JDK dirPermissions placement in gradle build files
This is required for building against read-only JDK installations (notably used when building with Nix). #1400 already attempted to integrate my nixpkgs patch for this purpose, but it accidentally placed the dirPermissions line under a different task.
1 parent 4206874 commit e4cead0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,12 +411,12 @@ tasks.register<Copy>("includeJavaMode") {
411411
from(java.configurations.runtimeClasspath)
412412
into(composeResources("modes/java/mode"))
413413
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
414-
dirPermissions { unix("rwx------") }
415414
}
416415
tasks.register<Copy>("includeJdk") {
417416
from(Jvm.current().javaHome.absolutePath)
418417
destinationDir = composeResources("jdk").get().asFile
419418

419+
dirPermissions { unix("rwx------") }
420420
fileTree(destinationDir).files.forEach { file ->
421421
file.setWritable(true, false)
422422
file.setReadable(true, false)

0 commit comments

Comments
 (0)