[Gradle, JS] Fix binaries.executable for Groovy dsl

#KT-37936 fixed
This commit is contained in:
Ilya Goncharov
2020-04-02 10:09:32 +03:00
parent 1f6b7dd88d
commit b3e6738243
@@ -34,6 +34,11 @@ constructor(
private val defaultCompilation: KotlinJsCompilation
get() = target.compilations.getByName(KotlinCompilation.MAIN_COMPILATION_NAME)
// For Groovy DSL
fun executable() {
executable(defaultCompilation)
}
fun executable(
compilation: KotlinJsCompilation = defaultCompilation
) {