[Gradle, JS] Remove deprecated methods for methods with Action input parameter to be chosen

^KT-60218 fixed

Merge-request: KT-MR-11280
Merged-by: Ilya Goncharov <Ilya.Goncharov@jetbrains.com>
This commit is contained in:
Ilya Goncharov
2023-07-26 10:32:45 +00:00
committed by Space Team
parent 86c1e0ded6
commit bfe73567c1
@@ -75,76 +75,25 @@ interface KotlinJsTargetDsl : KotlinTarget {
}
interface KotlinJsSubTargetDsl {
@Deprecated("Please use distribution(Action)")
@ExperimentalDistributionDsl
fun distribution(body: Distribution.() -> Unit) {
distribution(Action {
it.body()
})
}
@ExperimentalDistributionDsl
fun distribution(body: Action<Distribution>)
@Deprecated("Please use testTask(Action)")
fun testTask(body: KotlinJsTest.() -> Unit) {
testTask(Action {
it.body()
})
}
fun testTask(body: Action<KotlinJsTest>)
val testRuns: NamedDomainObjectContainer<KotlinJsPlatformTestRun>
}
interface KotlinJsBrowserDsl : KotlinJsSubTargetDsl {
@Deprecated("Please use commonWebpackConfig(Action)")
fun commonWebpackConfig(body: KotlinWebpackConfig.() -> Unit) {
commonWebpackConfig(Action {
it.body()
})
}
fun commonWebpackConfig(body: Action<KotlinWebpackConfig>)
@Deprecated("Please use runTask(Action)")
fun runTask(body: KotlinWebpack.() -> Unit) {
runTask(Action {
it.body()
})
}
fun runTask(body: Action<KotlinWebpack>)
@Deprecated("Please use webpackTask(Action)")
fun webpackTask(body: KotlinWebpack.() -> Unit) {
webpackTask(Action {
it.body()
})
}
fun webpackTask(body: Action<KotlinWebpack>)
@Deprecated("Please use dceTask(Action)")
@ExperimentalDceDsl
fun dceTask(body: KotlinJsDce.() -> Unit) {
dceTask(Action {
it.body()
})
}
@ExperimentalDceDsl
fun dceTask(body: Action<KotlinJsDce>)
}
interface KotlinJsNodeDsl : KotlinJsSubTargetDsl {
@Deprecated("Please use runTask(Action)")
fun runTask(body: NodeJsExec.() -> Unit) {
runTask(Action {
it.body()
})
}
fun runTask(body: Action<NodeJsExec>)
}