Skip to content

Commit

Permalink
Replace deprecated fileMode with filePermissions
Browse files Browse the repository at this point in the history
  • Loading branch information
CristianGM authored and Space Team committed Nov 22, 2024
1 parent 09186bb commit 593edb7
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions kotlin-native/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -269,13 +269,17 @@ tasks.register("distCompilerJars", Sync) {
from(configurations.trove4j_jar) {
include "trove4j*.jar"
rename "trove4j(.*).jar", "trove4j.jar"
fileMode(0644)
filePermissions {
unix("0644")
}
}
from(configurations.embeddableJar) {
rename {
"kotlin-native-compiler-embeddable.jar"
}
fileMode(0644)
filePermissions {
unix("0644")
}
}

into(nativeDistribution.map { it.compilerJars })
Expand All @@ -290,7 +294,9 @@ tasks.register("distTools", Sync) {

tasks.register("distBin", Sync) {
from(file('cmd')) {
fileMode(0755)
filePermissions {
unix("0755")
}
if (!PlatformInfo.isWindows()) {
exclude('**/*.bat')
}
Expand All @@ -302,7 +308,9 @@ tasks.register("distBin", Sync) {
tasks.register("distSwiftExport", Sync) {
from(configurations.objcExportApi) {
into('kotlin_runtime')
fileMode(0644)
filePermissions {
unix("0644")
}
}
into(nativeDistribution.map { it.swiftExport })
}
Expand Down

0 comments on commit 593edb7

Please sign in to comment.