[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
*/
val jsLegacyExecutableExplicitly: Boolean
get() = booleanProperty("kotlin.js.legacy.executable.explicitly") ?: false
val jsGenerateExecutableDefault: Boolean
get() = booleanProperty("kotlin.js.generate.executable.default") ?: true
val stdlibDefaultDependency: Boolean
get() = booleanProperty("kotlin.stdlib.default.dependency") ?: true
@@ -136,7 +136,7 @@ constructor(
project.objects.newInstance(KotlinBrowserJs::class.java, this).also {
it.configure()
if (!PropertiesProvider(project).jsLegacyExecutableExplicitly) {
if (PropertiesProvider(project).jsGenerateExecutableDefault) {
binaries.executable()
}
@@ -163,7 +163,7 @@ constructor(
project.objects.newInstance(KotlinNodeJs::class.java, this).also {
it.configure()
if (!PropertiesProvider(project).jsLegacyExecutableExplicitly) {
if (PropertiesProvider(project).jsGenerateExecutableDefault) {
binaries.executable()
}