Revert "[Gradle, JS] Output file path as input fo js compile task"

This reverts commit df173c8c
This commit is contained in:
Ilya Goncharov
2020-05-29 19:39:17 +03:00
parent df173c8c93
commit a41b746774
@@ -216,7 +216,6 @@ abstract class AbstractKotlinCompile<T : CommonCompilerArguments>() : AbstractKo
@get:Internal
internal var coroutinesFromGradleProperties: Coroutines? = null
// Input is needed to force rebuild even if source files are not changed
@get:Input
internal val coroutinesStr: String
@@ -528,13 +527,10 @@ open class Kotlin2JsCompile : AbstractKotlinCompile<K2JSCompilerArguments>(), Ko
else -> incremental
}
@get:Internal
@Suppress("unused")
@get:OutputFile
val outputFile: File
get() = outputFilePath?.let(::File) ?: defaultOutputFile
@get:Input
val outputFilePath: String?
get() = kotlinOptions.outputFile
get() = kotlinOptions.outputFile?.let(::File) ?: defaultOutputFile
override fun findKotlinCompilerClasspath(project: Project): List<File> =
findKotlinJsCompilerClasspath(project)