[Build] Fix configuration cache issues (part 2)

* Make WriteCopyrightToFile task compatible with configuration cache
* Configure shadowJar task in compatible with configuration cache way
* Configure compileJava9Java task in compatible with configuration cache way
* Make :js:js.tests buildscript compatible with configuration cache
Relates to #KT-44611
This commit is contained in:
Alexander Likhachev
2021-02-05 12:35:53 +03:00
parent ce19063e43
commit faf9600ff0
9 changed files with 31 additions and 43 deletions
@@ -1,6 +1,3 @@
import org.gradle.jvm.tasks.Jar
description = "Compiler runner + daemon client"
plugins {
@@ -20,8 +20,8 @@ dependencies {
}
val writeCopyright by task<tasks.WriteCopyrightToFile> {
outputFile = file("$buildDir/copyright/notice.txt")
commented = true
outputFile.set(file("$buildDir/copyright/notice.txt"))
commented.set(true)
}
application {
@@ -28,8 +28,8 @@ dependencies {
}
val writeCopyright by task<WriteCopyrightToFile> {
outputFile = file("$buildDir/copyright/notice.txt")
commented = true
outputFile.set(file("$buildDir/copyright/notice.txt"))
commented.set(true)
}
application {