Postpone some task configuration to execution phase

This commit is contained in:
Ilya Gorbunov
2017-10-23 01:41:49 +03:00
parent b1dcab886b
commit 40574949c7
3 changed files with 11 additions and 7 deletions
+4 -2
View File
@@ -159,8 +159,10 @@ task compileJs(type: JavaExec) {
}
main = "org.jetbrains.kotlin.js.FileMergerKt"
args = [jsOutputFile, rootDir, "$jsSrcDir/wrapper.js"] + inputFiles.collect { it.path } +
["$buildDir/classes/builtins/kotlin.js", "$buildDir/classes/main/kotlin.js"]
doFirst {
args = [jsOutputFile, rootDir, "$jsSrcDir/wrapper.js"] + inputFiles.collect { it.path } +
["$buildDir/classes/builtins/kotlin.js", "$buildDir/classes/main/kotlin.js"]
}
classpath = configurations.merger
doLast {
+1 -1
View File
@@ -127,7 +127,7 @@ task proguard(type: proguard.gradle.ProGuardTask) {
injars stripMetadata.outputs.files
outjars outputJarPath
libraryjars configurations.proguardDeps.files
libraryjars configurations.proguardDeps
libraryjars rtJar
configuration "${core}/reflection.jvm/reflection.pro"
@@ -53,10 +53,12 @@ sourceSets {
projectTest {
dependsOnTaskIfExistsRec("dist", project = rootProject)
workingDir = File(rootDir, "libraries/tools/kotlin-compiler-client-embeddable-test/src")
systemProperty("kotlin.test.script.classpath", the<JavaPluginConvention>().sourceSets.getByName("test").output.classesDirs.joinToString(File.pathSeparator))
systemProperty("compilerJar", testRuntimeCompilerJar.singleFile.canonicalPath)
systemProperty("stdlibJar", testStdlibJar.singleFile.canonicalPath)
systemProperty("scriptRuntimeJar", testScriptRuntimeJar.singleFile.canonicalPath)
doFirst {
systemProperty("kotlin.test.script.classpath", the<JavaPluginConvention>().sourceSets.getByName("test").output.classesDirs.joinToString(File.pathSeparator))
systemProperty("compilerJar", testRuntimeCompilerJar.singleFile.canonicalPath)
systemProperty("stdlibJar", testStdlibJar.singleFile.canonicalPath)
systemProperty("scriptRuntimeJar", testScriptRuntimeJar.singleFile.canonicalPath)
}
}
archives.artifacts.let { artifacts ->