[Gradle, JS] Fix param name
^KT-39210 fixed ^KT-31669 fixed
This commit is contained in:
+1
-1
@@ -125,7 +125,7 @@ internal class KotlinGradleBuildServices private constructor(
|
||||
ManagementFactory.getGarbageCollectorMXBeans().sumByLong { max(0, it.collectionCount) }
|
||||
|
||||
private val multipleProjectsHolder = KotlinPluginInMultipleProjectsHolder(
|
||||
differentVersionsInDifferentProject = true
|
||||
trackPluginVersionsSeparately = true
|
||||
)
|
||||
|
||||
@Synchronized
|
||||
|
||||
+4
-4
@@ -9,7 +9,7 @@ import org.gradle.api.Project
|
||||
import org.gradle.api.plugins.ExtraPropertiesExtension
|
||||
|
||||
internal class KotlinPluginInMultipleProjectsHolder(
|
||||
private val differentVersionsInDifferentProject: Boolean
|
||||
private val trackPluginVersionsSeparately: Boolean
|
||||
) {
|
||||
private var loadedInProjectPath: String? = null
|
||||
|
||||
@@ -18,7 +18,7 @@ internal class KotlinPluginInMultipleProjectsHolder(
|
||||
kotlinPluginVersion: String? = null,
|
||||
onRegister: () -> Unit = {}
|
||||
) {
|
||||
require(differentVersionsInDifferentProject == (kotlinPluginVersion != null))
|
||||
require(trackPluginVersionsSeparately == (kotlinPluginVersion != null))
|
||||
|
||||
val projectPath = project.path
|
||||
|
||||
@@ -42,7 +42,7 @@ internal class KotlinPluginInMultipleProjectsHolder(
|
||||
project: Project,
|
||||
kotlinPluginVersion: String? = null
|
||||
): Boolean {
|
||||
require(differentVersionsInDifferentProject == (kotlinPluginVersion != null))
|
||||
require(trackPluginVersionsSeparately == (kotlinPluginVersion != null))
|
||||
return getAffectedProjects(project, kotlinPluginVersion)?.let {
|
||||
it.size > 1
|
||||
} ?: false
|
||||
@@ -52,7 +52,7 @@ internal class KotlinPluginInMultipleProjectsHolder(
|
||||
project: Project,
|
||||
kotlinPluginVersion: String? = null
|
||||
): List<String>? {
|
||||
require(differentVersionsInDifferentProject == (kotlinPluginVersion != null))
|
||||
require(trackPluginVersionsSeparately == (kotlinPluginVersion != null))
|
||||
|
||||
val ext = getExt(project)
|
||||
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ import org.jetbrains.kotlin.gradle.plugin.MULTIPLE_KOTLIN_PLUGINS_LOADED_WARNING
|
||||
internal class MultiplePluginDeclarationDetector
|
||||
private constructor() {
|
||||
private val pluginInMultipleProjectsHolder = KotlinPluginInMultipleProjectsHolder(
|
||||
differentVersionsInDifferentProject = false
|
||||
trackPluginVersionsSeparately = false
|
||||
)
|
||||
|
||||
fun detect(project: Project) {
|
||||
|
||||
Reference in New Issue
Block a user