[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:
committed by
Space Team
parent
86c1e0ded6
commit
bfe73567c1
-51
@@ -75,76 +75,25 @@ interface KotlinJsTargetDsl : KotlinTarget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
interface KotlinJsSubTargetDsl {
|
interface KotlinJsSubTargetDsl {
|
||||||
@Deprecated("Please use distribution(Action)")
|
|
||||||
@ExperimentalDistributionDsl
|
|
||||||
fun distribution(body: Distribution.() -> Unit) {
|
|
||||||
distribution(Action {
|
|
||||||
it.body()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
@ExperimentalDistributionDsl
|
@ExperimentalDistributionDsl
|
||||||
fun distribution(body: Action<Distribution>)
|
fun distribution(body: Action<Distribution>)
|
||||||
|
|
||||||
@Deprecated("Please use testTask(Action)")
|
|
||||||
fun testTask(body: KotlinJsTest.() -> Unit) {
|
|
||||||
testTask(Action {
|
|
||||||
it.body()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
fun testTask(body: Action<KotlinJsTest>)
|
fun testTask(body: Action<KotlinJsTest>)
|
||||||
|
|
||||||
val testRuns: NamedDomainObjectContainer<KotlinJsPlatformTestRun>
|
val testRuns: NamedDomainObjectContainer<KotlinJsPlatformTestRun>
|
||||||
}
|
}
|
||||||
|
|
||||||
interface KotlinJsBrowserDsl : KotlinJsSubTargetDsl {
|
interface KotlinJsBrowserDsl : KotlinJsSubTargetDsl {
|
||||||
@Deprecated("Please use commonWebpackConfig(Action)")
|
|
||||||
fun commonWebpackConfig(body: KotlinWebpackConfig.() -> Unit) {
|
|
||||||
commonWebpackConfig(Action {
|
|
||||||
it.body()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
fun commonWebpackConfig(body: Action<KotlinWebpackConfig>)
|
fun commonWebpackConfig(body: Action<KotlinWebpackConfig>)
|
||||||
|
|
||||||
@Deprecated("Please use runTask(Action)")
|
|
||||||
fun runTask(body: KotlinWebpack.() -> Unit) {
|
|
||||||
runTask(Action {
|
|
||||||
it.body()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
fun runTask(body: Action<KotlinWebpack>)
|
fun runTask(body: Action<KotlinWebpack>)
|
||||||
|
|
||||||
@Deprecated("Please use webpackTask(Action)")
|
|
||||||
fun webpackTask(body: KotlinWebpack.() -> Unit) {
|
|
||||||
webpackTask(Action {
|
|
||||||
it.body()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
fun webpackTask(body: Action<KotlinWebpack>)
|
fun webpackTask(body: Action<KotlinWebpack>)
|
||||||
|
|
||||||
@Deprecated("Please use dceTask(Action)")
|
|
||||||
@ExperimentalDceDsl
|
|
||||||
fun dceTask(body: KotlinJsDce.() -> Unit) {
|
|
||||||
dceTask(Action {
|
|
||||||
it.body()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
@ExperimentalDceDsl
|
@ExperimentalDceDsl
|
||||||
fun dceTask(body: Action<KotlinJsDce>)
|
fun dceTask(body: Action<KotlinJsDce>)
|
||||||
}
|
}
|
||||||
|
|
||||||
interface KotlinJsNodeDsl : KotlinJsSubTargetDsl {
|
interface KotlinJsNodeDsl : KotlinJsSubTargetDsl {
|
||||||
@Deprecated("Please use runTask(Action)")
|
|
||||||
fun runTask(body: NodeJsExec.() -> Unit) {
|
|
||||||
runTask(Action {
|
|
||||||
it.body()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
fun runTask(body: Action<NodeJsExec>)
|
fun runTask(body: Action<NodeJsExec>)
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user