[Gradle, JS] Deprecate produceExecutable
^KT-40568 fixed
This commit is contained in:
+10
@@ -6,6 +6,7 @@
|
|||||||
package org.jetbrains.kotlin.gradle.targets.js.dsl
|
package org.jetbrains.kotlin.gradle.targets.js.dsl
|
||||||
|
|
||||||
import groovy.lang.Closure
|
import groovy.lang.Closure
|
||||||
|
import org.gradle.api.GradleException
|
||||||
import org.gradle.api.NamedDomainObjectContainer
|
import org.gradle.api.NamedDomainObjectContainer
|
||||||
import org.gradle.util.ConfigureUtil
|
import org.gradle.util.ConfigureUtil
|
||||||
import org.jetbrains.kotlin.gradle.dsl.KotlinJsDce
|
import org.jetbrains.kotlin.gradle.dsl.KotlinJsDce
|
||||||
@@ -55,6 +56,15 @@ interface KotlinJsTargetDsl : KotlinTarget {
|
|||||||
|
|
||||||
val binaries: KotlinJsBinaryContainer
|
val binaries: KotlinJsBinaryContainer
|
||||||
|
|
||||||
|
@Deprecated(
|
||||||
|
message = "produceExecutable() was changed on binaries.executable()",
|
||||||
|
replaceWith = ReplaceWith("binaries.executable()"),
|
||||||
|
level = DeprecationLevel.ERROR
|
||||||
|
)
|
||||||
|
fun produceExecutable() {
|
||||||
|
throw GradleException("Please change produceExecutable() on binaries.executable()")
|
||||||
|
}
|
||||||
|
|
||||||
val testRuns: NamedDomainObjectContainer<KotlinJsReportAggregatingTestRun>
|
val testRuns: NamedDomainObjectContainer<KotlinJsReportAggregatingTestRun>
|
||||||
|
|
||||||
// Need to compatibility when users use KotlinJsCompilation specific in build script
|
// Need to compatibility when users use KotlinJsCompilation specific in build script
|
||||||
|
|||||||
Reference in New Issue
Block a user