After migration to 1.9.0, when using `js { runTask...
# multiplatform
r
After migration to 1.9.0, when using
js { runTask { ... } }
in my
build.gradle.kts
I see a deprecation warning
'runTask(KotlinWebpack.() -> Unit): Unit' is deprecated. Please use runTask(Action)
, but how can I fix this?
o
runTask(Action { … })
r
Thanks!
But it doesn't look like an improvement to me :(
1
o
Same here. Maybe another level of laziness indirection to speed up configuration, but I haven't looked into it.
h
As a build script user you can ignore the error message.
Action
is a fun interface so you can use it with the applied SAM plugin with Kotlin as
T.() ->
Unit`. Only for build scripts libraries the depreciation note is relevant due to changing api.
thank you color 1