[Gradle, JS] Fix binaries.executable for Groovy dsl
#KT-37936 fixed
This commit is contained in:
+5
@@ -34,6 +34,11 @@ constructor(
|
|||||||
private val defaultCompilation: KotlinJsCompilation
|
private val defaultCompilation: KotlinJsCompilation
|
||||||
get() = target.compilations.getByName(KotlinCompilation.MAIN_COMPILATION_NAME)
|
get() = target.compilations.getByName(KotlinCompilation.MAIN_COMPILATION_NAME)
|
||||||
|
|
||||||
|
// For Groovy DSL
|
||||||
|
fun executable() {
|
||||||
|
executable(defaultCompilation)
|
||||||
|
}
|
||||||
|
|
||||||
fun executable(
|
fun executable(
|
||||||
compilation: KotlinJsCompilation = defaultCompilation
|
compilation: KotlinJsCompilation = defaultCompilation
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user