diff --git a/spring-boot-project/spring-boot-cli/build.gradle b/spring-boot-project/spring-boot-cli/build.gradle index cc67ab55ce..7409337175 100644 --- a/spring-boot-project/spring-boot-cli/build.gradle +++ b/spring-boot-project/spring-boot-cli/build.gradle @@ -131,10 +131,11 @@ def configureArchive(archive) { into "lib/" } archive.from(file("src/main/content")) { - eachFile { it.mode = it.directory ? 0755 : 0644 } + dirMode = 0755 + fileMode = 0644 } archive.from(file("src/main/executablecontent")) { - eachFile { it.mode = 0755 } + fileMode = 0755 } }