Skip to content

Commit 5ef36a1

Browse files
committed
Clean-up some warnings
- kotlin.mpp.enableGranularSourceSetsMetadata=true has no longer effect - remove redundant opt-in
1 parent 13426fc commit 5ef36a1

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

core/build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,12 @@ kotlin {
9393
sourceSets.all {
9494
val suffixIndex = name.indexOfLast { it.isUpperCase() }
9595
val targetName = name.substring(0, suffixIndex)
96-
val suffix = name.substring(suffixIndex).toLowerCase(Locale.ROOT).takeIf { it != "main" }
96+
val suffix = name.substring(suffixIndex).lowercase().takeIf { it != "main" }
9797
// println("SOURCE_SET: $name")
9898
kotlin.srcDir("$targetName/${suffix ?: "src"}")
9999
resources.srcDir("$targetName/${suffix?.let { it + "Resources" } ?: "resources"}")
100100
languageSettings {
101101
// progressiveMode = true
102-
optIn("kotlin.Experimental")
103102
}
104103
}
105104

gradle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ java.mainToolchainVersion=8
1313
java.modularToolchainVersion=11
1414

1515
kotlin.mpp.stability.nowarn=true
16-
kotlin.mpp.enableGranularSourceSetsMetadata=true
1716
kotlin.mpp.enableCompatibilityMetadataVariant=true
1817
kotlin.js.compiler=both
1918
kotlin.native.ignoreIncorrectDependencies=true

0 commit comments

Comments
 (0)