Fix overrides of removed in gradle 6.0 AbstractCompile.compile
https://github.com/gradle/gradle/commit/5e7476de957792b6d2f164968b4023539a0385f2
This commit is contained in:
+1
-1
@@ -239,7 +239,7 @@ abstract class AbstractKotlinNativeCompile<T : KotlinCommonToolOptions> : Abstra
|
|||||||
buildCompilerArgs() + buildCommonArgs() + buildSourceArgs()
|
buildCompilerArgs() + buildCommonArgs() + buildSourceArgs()
|
||||||
|
|
||||||
@TaskAction
|
@TaskAction
|
||||||
override fun compile() {
|
open fun compile() {
|
||||||
val output = outputFile.get()
|
val output = outputFile.get()
|
||||||
output.parentFile.mkdirs()
|
output.parentFile.mkdirs()
|
||||||
KonanCompilerRunner(project).run(buildArgs())
|
KonanCompilerRunner(project).run(buildArgs())
|
||||||
|
|||||||
-2
@@ -63,8 +63,6 @@ open class KotlinJsDce : AbstractKotlinCompileTool<K2JSDceArguments>(), KotlinJs
|
|||||||
|
|
||||||
override fun findKotlinCompilerClasspath(project: Project): List<File> = findKotlinJsDceClasspath(project)
|
override fun findKotlinCompilerClasspath(project: Project): List<File> = findKotlinJsDceClasspath(project)
|
||||||
|
|
||||||
override fun compile() {}
|
|
||||||
|
|
||||||
override fun keep(vararg fqn: String) {
|
override fun keep(vararg fqn: String) {
|
||||||
keep += fqn
|
keep += fqn
|
||||||
}
|
}
|
||||||
|
|||||||
-4
@@ -259,10 +259,6 @@ abstract class AbstractKotlinCompile<T : CommonCompilerArguments>() : AbstractKo
|
|||||||
internal open fun compilerRunner(): GradleCompilerRunner =
|
internal open fun compilerRunner(): GradleCompilerRunner =
|
||||||
GradleCompilerRunner(this)
|
GradleCompilerRunner(this)
|
||||||
|
|
||||||
override fun compile() {
|
|
||||||
assert(false, { "unexpected call to compile()" })
|
|
||||||
}
|
|
||||||
|
|
||||||
@TaskAction
|
@TaskAction
|
||||||
fun execute(inputs: IncrementalTaskInputs) {
|
fun execute(inputs: IncrementalTaskInputs) {
|
||||||
// If task throws exception, but its outputs are changed during execution,
|
// If task throws exception, but its outputs are changed during execution,
|
||||||
|
|||||||
Reference in New Issue
Block a user