[Gradle, JS] Rename flag for legacy

^KT-40320 fixed
This commit is contained in:
Ilya Goncharov
2020-07-20 14:51:14 +03:00
parent e776444459
commit 61b5a738da
2 changed files with 4 additions and 4 deletions
@@ -205,8 +205,8 @@ internal class PropertiesProvider private constructor(private val project: Proje
/** /**
* Use Kotlin/JS backend compiler type * Use Kotlin/JS backend compiler type
*/ */
val jsLegacyExecutableExplicitly: Boolean val jsGenerateExecutableDefault: Boolean
get() = booleanProperty("kotlin.js.legacy.executable.explicitly") ?: false get() = booleanProperty("kotlin.js.generate.executable.default") ?: true
val stdlibDefaultDependency: Boolean val stdlibDefaultDependency: Boolean
get() = booleanProperty("kotlin.stdlib.default.dependency") ?: true get() = booleanProperty("kotlin.stdlib.default.dependency") ?: true
@@ -136,7 +136,7 @@ constructor(
project.objects.newInstance(KotlinBrowserJs::class.java, this).also { project.objects.newInstance(KotlinBrowserJs::class.java, this).also {
it.configure() it.configure()
if (!PropertiesProvider(project).jsLegacyExecutableExplicitly) { if (PropertiesProvider(project).jsGenerateExecutableDefault) {
binaries.executable() binaries.executable()
} }
@@ -163,7 +163,7 @@ constructor(
project.objects.newInstance(KotlinNodeJs::class.java, this).also { project.objects.newInstance(KotlinNodeJs::class.java, this).also {
it.configure() it.configure()
if (!PropertiesProvider(project).jsLegacyExecutableExplicitly) { if (PropertiesProvider(project).jsGenerateExecutableDefault) {
binaries.executable() binaries.executable()
} }