mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-06 15:53:19 +00:00
[Gradle, JS] Extract properties provider in KotlinJsTarget
This commit is contained in:
@@ -132,11 +132,13 @@ constructor(
|
||||
it.description = "Run js on all configured platforms"
|
||||
}
|
||||
|
||||
private val propertiesProvider = PropertiesProvider(project)
|
||||
|
||||
private val browserLazyDelegate = lazy {
|
||||
project.objects.newInstance(KotlinBrowserJs::class.java, this).also {
|
||||
it.configure()
|
||||
|
||||
if (PropertiesProvider(project).jsGenerateExecutableDefault && irTarget == null) {
|
||||
if (propertiesProvider.jsGenerateExecutableDefault && irTarget == null) {
|
||||
binaries.executable()
|
||||
}
|
||||
|
||||
@@ -163,7 +165,7 @@ constructor(
|
||||
project.objects.newInstance(KotlinNodeJs::class.java, this).also {
|
||||
it.configure()
|
||||
|
||||
if (PropertiesProvider(project).jsGenerateExecutableDefault && irTarget == null) {
|
||||
if (propertiesProvider.jsGenerateExecutableDefault && irTarget == null) {
|
||||
binaries.executable()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user