[Gradle] Restore AbstractKotlinCompilation and AbstractKotlinCompilationToRunnableFiles...
... into KotlinCompilation class hierarchy (scheduled for removal later) KT-54312
This commit is contained in:
committed by
Space Team
parent
1737daea55
commit
69b7cef2e2
+2
-2
@@ -121,7 +121,7 @@ interface KotlinCompilation<out T : KotlinCommonOptionsDeprecated> : Named,
|
||||
get() = target.disambiguationClassifier + name
|
||||
}
|
||||
|
||||
// TODO NOW: Revisit/Remove?
|
||||
@Deprecated("Scheduled for removal with Kotlin 1.9")
|
||||
interface KotlinCompilationToRunnableFiles<T : KotlinCommonOptionsDeprecated> : KotlinCompilation<T> {
|
||||
override val runtimeDependencyConfigurationName: String
|
||||
|
||||
@@ -132,7 +132,7 @@ interface KotlinCompilationToRunnableFiles<T : KotlinCommonOptionsDeprecated> :
|
||||
}
|
||||
|
||||
@Deprecated("Scheduled for removal with Kotlin 1.9")
|
||||
@Suppress("EXTENSION_SHADOWED_BY_MEMBER") // kept for compatibility
|
||||
@Suppress("EXTENSION_SHADOWED_BY_MEMBER", "deprecation") // kept for compatibility
|
||||
val <T : KotlinCommonOptionsDeprecated> KotlinCompilation<T>.runtimeDependencyConfigurationName: String?
|
||||
get() = (this as? KotlinCompilationToRunnableFiles<T>)?.runtimeDependencyConfigurationName
|
||||
|
||||
|
||||
+1
@@ -39,6 +39,7 @@ interface CompilationExecutionSource<CompilationType : KotlinCompilation<*>> : E
|
||||
val compilation: CompilationType
|
||||
}
|
||||
|
||||
@Suppress("deprecation")
|
||||
interface CompilationExecutionSourceSupport<in T : KotlinCompilationToRunnableFiles<*>> {
|
||||
/**
|
||||
* Select a compilation to run the execution from.
|
||||
|
||||
Reference in New Issue
Block a user