[Gradle] Inline 'sourceSetFreeCompilerArgsPropertyName' to its use site
KT-61634
This commit is contained in:
committed by
Space Team
parent
90230dda60
commit
3210fdfec4
-3
@@ -29,8 +29,5 @@ class KotlinMultiplatformPlugin : Plugin<Project> {
|
||||
|
||||
companion object {
|
||||
const val METADATA_TARGET_NAME = "metadata"
|
||||
|
||||
internal fun sourceSetFreeCompilerArgsPropertyName(sourceSetName: String) =
|
||||
"kotlin.mpp.freeCompilerArgsForSourceSet.$sourceSetName"
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ internal val SyncLanguageSettingsWithKotlinExtensionSetupAction = KotlinProjectS
|
||||
|
||||
languageSettings.freeCompilerArgsProvider = project.provider {
|
||||
val propertyValue = with(project.extensions.extraProperties) {
|
||||
val sourceSetFreeCompilerArgsPropertyName = KotlinMultiplatformPlugin.sourceSetFreeCompilerArgsPropertyName(sourceSet.name)
|
||||
val sourceSetFreeCompilerArgsPropertyName = "kotlin.mpp.freeCompilerArgsForSourceSet.${sourceSet.name}"
|
||||
if (has(sourceSetFreeCompilerArgsPropertyName)) {
|
||||
get(sourceSetFreeCompilerArgsPropertyName)
|
||||
} else null
|
||||
|
||||
Reference in New Issue
Block a user