[Gradle, JS] Extract properties provider in KotlinJsTarget
This commit is contained in:
+4
-2
@@ -132,11 +132,13 @@ constructor(
|
|||||||
it.description = "Run js on all configured platforms"
|
it.description = "Run js on all configured platforms"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private val propertiesProvider = PropertiesProvider(project)
|
||||||
|
|
||||||
private val browserLazyDelegate = lazy {
|
private val browserLazyDelegate = lazy {
|
||||||
project.objects.newInstance(KotlinBrowserJs::class.java, this).also {
|
project.objects.newInstance(KotlinBrowserJs::class.java, this).also {
|
||||||
it.configure()
|
it.configure()
|
||||||
|
|
||||||
if (PropertiesProvider(project).jsGenerateExecutableDefault && irTarget == null) {
|
if (propertiesProvider.jsGenerateExecutableDefault && irTarget == null) {
|
||||||
binaries.executable()
|
binaries.executable()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -163,7 +165,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).jsGenerateExecutableDefault && irTarget == null) {
|
if (propertiesProvider.jsGenerateExecutableDefault && irTarget == null) {
|
||||||
binaries.executable()
|
binaries.executable()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user