Build: Set file access rights explicitly in kotlin-stdlib-js jar

Workaround for #KTI-401. Since gradle 6.6 ant.replaceregexp call sets
incorrect access rights `-rw-------` instead of `-rw-r--r--`
This commit is contained in:
Vyacheslav Gerasimov
2020-12-01 20:40:41 +03:00
parent 4626f21c58
commit 235813736e
+2
View File
@@ -255,6 +255,7 @@ task libraryJarWithoutIr(type: Jar, dependsOn: compileJs) {
from jsOutputMetaFile
from "${jsOutputFile}.map"
from sourceSets.main.output
filesMatching("*.*") { it.mode = 0b110100100 } // KTI-401
}
task libraryJarWithIr(type: Zip, dependsOn: libraryJarWithoutIr) {
@@ -269,6 +270,7 @@ task libraryJarWithIr(type: Zip, dependsOn: libraryJarWithoutIr) {
def irKlib = tasks.getByPath(":kotlin-stdlib-js-ir:compileKotlinJs")
fileTree(irKlib.outputs.files.first().path)
}
filesMatching("*.*") { it.mode = 0b110100100 } // KTI-401
}
jar.dependsOn(libraryJarWithIr)