[Gradle] Serialise compiler arguments using 'compactArgumentValues = false' for IDE

This makes it easier for the IDE to intern individual arguments later

KTIJ-24976
This commit is contained in:
Sebastian Sellmair
2023-04-04 14:45:05 +02:00
committed by Space Team
parent b6ca62f330
commit f57d0393e5
@@ -5,7 +5,7 @@
package org.jetbrains.kotlin.gradle.plugin.ide
import org.jetbrains.kotlin.compilerRunner.ArgumentUtils
import org.jetbrains.kotlin.compilerRunner.toArgumentStrings
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
import org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension
import org.jetbrains.kotlin.gradle.plugin.CreateCompilerArgumentsContext
@@ -43,6 +43,9 @@ internal class IdeCompilerArgumentsResolverImpl(
),
)
)
return ArgumentUtils.convertArgumentsToStringList(compilerArguments)
return compilerArguments.toArgumentStrings(
shortArgumentKeys = true,
compactArgumentValues = false
)
}
}