[Gradle] KotlinCompilation: Remove .ownModuleName vs .moduleName duplication

This mechanism is simply not necessary anymore.
Just using the 'ownModuleName' as the value of 'moduleName' is
sufficient.

^KT-54312 Verification Pending
This commit is contained in:
Sebastian Sellmair
2022-10-26 10:25:46 +02:00
committed by Space Team
parent 02df7a7d4c
commit b3d82c74fe
19 changed files with 21 additions and 229 deletions
@@ -115,6 +115,7 @@ interface KotlinCompilation<out T : KotlinCommonOptionsDeprecated> : Named,
override val relatedConfigurationNames: List<String>
get() = super.relatedConfigurationNames + compileDependencyConfigurationName
@Deprecated("Scheduled for removal with Kotlin 1.9. Use compilerOptions instead")
val moduleName: String
val disambiguatedName
@@ -43,6 +43,4 @@ interface GradleKpmVariantCompilationData<T : KotlinCommonOptionsDeprecated> : K
override val platformType: KotlinPlatformType
get() = owner.platformType
override val ownModuleName: String
}
@@ -34,7 +34,6 @@ interface KotlinCompilationData<T : KotlinCommonOptionsDeprecated> {
val platformType: KotlinPlatformType
val moduleName: String
val ownModuleName: String
@Deprecated(
message = "Replaced with compilerOptions.options",