[Gradle] Schedule 'relatedConfigurationNames' for removal in 2.0
^KT-58220 Verification Pending See: KT-58225
This commit is contained in:
committed by
Space Team
parent
25c2fe03a9
commit
fa40c1115a
+1
@@ -181,6 +181,7 @@ interface HasKotlinDependencies {
|
||||
val compileOnlyConfigurationName: String
|
||||
val runtimeOnlyConfigurationName: String
|
||||
|
||||
@Deprecated("Scheduled for removal with Kotlin 2.0")
|
||||
val relatedConfigurationNames: List<String>
|
||||
get() = listOf(apiConfigurationName, implementationConfigurationName, compileOnlyConfigurationName, runtimeOnlyConfigurationName)
|
||||
}
|
||||
|
||||
+4
@@ -101,6 +101,8 @@ interface KotlinCompilation<out T : KotlinCommonOptionsDeprecated> : Named,
|
||||
|
||||
override fun getName(): String = compilationName
|
||||
|
||||
@Deprecated("Scheduled for removal with Kotlin 2.0")
|
||||
@Suppress("DEPRECATION")
|
||||
override val relatedConfigurationNames: List<String>
|
||||
get() = super.relatedConfigurationNames + compileDependencyConfigurationName
|
||||
|
||||
@@ -114,6 +116,8 @@ interface KotlinCompilationToRunnableFiles<T : KotlinCommonOptionsDeprecated> :
|
||||
|
||||
override var runtimeDependencyFiles: FileCollection
|
||||
|
||||
@Suppress("DEPRECATION")
|
||||
@Deprecated("Scheduled for removal with Kotlin 2.0")
|
||||
override val relatedConfigurationNames: List<String>
|
||||
get() = super.relatedConfigurationNames + runtimeDependencyConfigurationName
|
||||
}
|
||||
|
||||
+2
@@ -64,6 +64,8 @@ interface GradleKpmFragment : KpmFragment, HasKotlinDependencies, GradleKpmFragm
|
||||
override val runtimeOnlyConfigurationName: String
|
||||
get() = runtimeOnlyConfiguration.name
|
||||
|
||||
@Deprecated("Scheduled for removal with Kotlin 2.0")
|
||||
@Suppress("DEPRECATION")
|
||||
override val relatedConfigurationNames: List<String>
|
||||
get() = super.relatedConfigurationNames +
|
||||
// TODO: resolvable metadata configurations?
|
||||
|
||||
Reference in New Issue
Block a user