Apply Gradle fileMode and dirMode consistently in jar and war archives

Fixes gh-37496
This commit is contained in:
Scott Frederick
2023-09-26 13:49:19 -05:00
parent fce64878b4
commit aeeb5cf1f8
8 changed files with 119 additions and 16 deletions

View File

@@ -0,0 +1,10 @@
plugins {
id 'java'
id 'org.springframework.boot' version '{version}'
}
tasks.named("bootJar") {
fileMode = 0400
dirMode = 0500
mainClass = 'com.example.Application'
}

View File

@@ -0,0 +1,10 @@
plugins {
id 'war'
id 'org.springframework.boot' version '{version}'
}
tasks.named("bootWar") {
fileMode = 0400
dirMode = 0500
mainClass = 'com.example.Application'
}