[Gradle, JS] Rename DEFAULT_GENERATE_EXTERNALS

This commit is contained in:
Ilya Goncharov
2020-06-08 12:47:25 +03:00
parent 0f47a38042
commit 9f45ef8df5
3 changed files with 8 additions and 8 deletions
@@ -69,7 +69,7 @@ interface KotlinDependencyHandler {
): Dependency = npm(
name = name,
version = version,
generateExternals = DEFAULT_GENERATE_KOTLIN_EXTERNALS
generateExternals = DEFAULT_GENERATE_EXTERNALS
)
fun npm(
@@ -84,7 +84,7 @@ interface KotlinDependencyHandler {
): Dependency = npm(
name = name,
directory = directory,
generateExternals = DEFAULT_GENERATE_KOTLIN_EXTERNALS
generateExternals = DEFAULT_GENERATE_EXTERNALS
)
fun npm(
@@ -96,7 +96,7 @@ interface KotlinDependencyHandler {
directory: File
): Dependency = npm(
directory = directory,
generateExternals = DEFAULT_GENERATE_KOTLIN_EXTERNALS
generateExternals = DEFAULT_GENERATE_EXTERNALS
)
fun devNpm(
@@ -125,7 +125,7 @@ interface KotlinDependencyHandler {
): Dependency = optionalNpm(
name = name,
version = version,
generateExternals = DEFAULT_GENERATE_KOTLIN_EXTERNALS
generateExternals = DEFAULT_GENERATE_EXTERNALS
)
fun optionalNpm(
@@ -140,7 +140,7 @@ interface KotlinDependencyHandler {
): Dependency = optionalNpm(
name = name,
directory = directory,
generateExternals = DEFAULT_GENERATE_KOTLIN_EXTERNALS
generateExternals = DEFAULT_GENERATE_EXTERNALS
)
fun optionalNpm(
@@ -152,7 +152,7 @@ interface KotlinDependencyHandler {
directory: File
): Dependency = optionalNpm(
directory = directory,
generateExternals = DEFAULT_GENERATE_KOTLIN_EXTERNALS
generateExternals = DEFAULT_GENERATE_EXTERNALS
)
fun peerNpm(
@@ -5,4 +5,4 @@
package org.jetbrains.kotlin.gradle.plugin
const val DEFAULT_GENERATE_KOTLIN_EXTERNALS = false
const val DEFAULT_GENERATE_EXTERNALS = false
@@ -192,7 +192,7 @@ internal class PropertiesProvider private constructor(private val project: Proje
* Generate kotlin/js external declarations from all .d.ts files found in npm modules
*/
val jsGenerateExternals: Boolean
get() = booleanProperty("kotlin.js.generate.externals") ?: DEFAULT_GENERATE_KOTLIN_EXTERNALS
get() = booleanProperty("kotlin.js.generate.externals") ?: DEFAULT_GENERATE_EXTERNALS
/**
* Automaticaly discover external .d.ts declarations