Skip to content

Commit

Permalink
[Gradle, JS] Remove deprecation from methods
Browse files Browse the repository at this point in the history
^KTIJ-24913 fixed
  • Loading branch information
ilgonmic authored and qodana-bot committed Mar 20, 2023
1 parent defe047 commit 05a87b4
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,13 @@ interface KotlinJsSubTargetDsl {
@ExperimentalDistributionDsl
fun distribution(body: Action<Distribution>)

@Deprecated("Use distribution(Action<KotlinJsTest>)", ReplaceWith("distribution(Action { body(it) }"))
@ExperimentalDistributionDsl
fun distribution(body: Distribution.() -> Unit) {
distribution(Action { body(it) })
}

fun testTask(body: Action<KotlinJsTest>)

@Deprecated("Use testTask(Action<KotlinJsTest>)", ReplaceWith("testTask(Action { body(it) }"))
fun testTask(body: KotlinJsTest.() -> Unit) {
testTask(Action { body(it) })
}
Expand All @@ -97,29 +95,25 @@ interface KotlinJsSubTargetDsl {
interface KotlinJsBrowserDsl : KotlinJsSubTargetDsl {
fun commonWebpackConfig(body: Action<KotlinWebpackConfig>)

@Deprecated("Use commonWebpackConfig(Action<KotlinJsTest>)", ReplaceWith("commonWebpackConfig(Action { body(it) }"))
fun commonWebpackConfig(body: KotlinWebpackConfig.() -> Unit) {
commonWebpackConfig(Action { body(it) })
}

fun runTask(body: Action<KotlinWebpack>)

@Deprecated("Use runTask(Action<KotlinJsTest>)", ReplaceWith("runTask(Action { body(it) }"))
fun runTask(body: KotlinWebpack.() -> Unit) {
runTask(Action { body(it) })
}

fun webpackTask(body: Action<KotlinWebpack>)

@Deprecated("Use webpackTask(Action<KotlinJsTest>)", ReplaceWith("webpackTask(Action { body(it) }"))
fun webpackTask(body: KotlinWebpack.() -> Unit) {
webpackTask(Action { body(it) })
}

@ExperimentalDceDsl
fun dceTask(body: Action<KotlinJsDce>)

@Deprecated("Use dceTask(Action<KotlinJsTest>)", ReplaceWith("dceTask(Action { body(it) }"))
@ExperimentalDceDsl
fun dceTask(body: KotlinJsDce.() -> Unit) {
dceTask(Action { body(it) })
Expand All @@ -129,7 +123,6 @@ interface KotlinJsBrowserDsl : KotlinJsSubTargetDsl {
interface KotlinJsNodeDsl : KotlinJsSubTargetDsl {
fun runTask(body: Action<NodeJsExec>)

@Deprecated("Use runTask(Action<KotlinJsTest>)", ReplaceWith("runTask(Action { body(it) }"))
fun runTask(body: NodeJsExec.() -> Unit) {
runTask(Action { body(it) })
}
Expand Down

0 comments on commit 05a87b4

Please sign in to comment.