[Gradle] Update 'Scheduled for removal' deprecations

^KT-58220 Verification Pending
This commit is contained in:
Sebastian Sellmair
2023-04-25 09:57:23 +02:00
committed by Space Team
parent f98765f254
commit 25c2fe03a9
4 changed files with 8 additions and 8 deletions
@@ -108,7 +108,7 @@ interface KotlinCompilation<out T : KotlinCommonOptionsDeprecated> : Named,
get() = target.disambiguationClassifier + name
}
@Deprecated("Scheduled for removal with Kotlin 1.9")
@Deprecated("Scheduled for removal with Kotlin 2.0")
interface KotlinCompilationToRunnableFiles<T : KotlinCommonOptionsDeprecated> : KotlinCompilation<T> {
override val runtimeDependencyConfigurationName: String
@@ -118,12 +118,12 @@ interface KotlinCompilationToRunnableFiles<T : KotlinCommonOptionsDeprecated> :
get() = super.relatedConfigurationNames + runtimeDependencyConfigurationName
}
@Deprecated("Scheduled for removal with Kotlin 1.9")
@Deprecated("Scheduled for removal with Kotlin 2.0")
@Suppress("EXTENSION_SHADOWED_BY_MEMBER", "deprecation") // kept for compatibility
val <T : KotlinCommonOptionsDeprecated> KotlinCompilation<T>.runtimeDependencyConfigurationName: String?
get() = (this as? KotlinCompilationToRunnableFiles<T>)?.runtimeDependencyConfigurationName
@Deprecated("Scheduled for removal with Kotlin 1.9")
@Deprecated("Scheduled for removal with Kotlin 2.0")
interface KotlinCompilationWithResources<T : KotlinCommonOptionsDeprecated> : KotlinCompilation<T> {
val processResourcesTaskName: String
}
@@ -102,7 +102,7 @@ abstract class AbstractKotlinCompile<T : CommonCompilerArguments> @Inject constr
internal open fun isIncrementalCompilationEnabled(): Boolean =
incremental
@Deprecated("Scheduled for removal with Kotlin 1.9", ReplaceWith("moduleName"))
@Deprecated("Scheduled for removal with Kotlin 2.0", ReplaceWith("moduleName"))
@get:Input
abstract val ownModuleName: Property<String>
@@ -36,7 +36,7 @@ fun KotlinToolingVersion(kotlinVersion: KotlinVersion, classifier: String? = nul
}
@Deprecated(
"Use KotlinToolingVersion instead. Scheduled for removal with Kotlin 1.9",
"Use KotlinToolingVersion instead. Scheduled for removal with Kotlin 2.0",
replaceWith = ReplaceWith("KotlinToolingVersion(kotlinVersionString)")
)
fun KotlinToolingVersionOrNull(kotlinVersionString: String): KotlinToolingVersion? {
@@ -168,21 +168,21 @@ internal fun <T> createResultSet(initialSize: Int = 16): MutableSet<T> {
//region Deprecations
@Suppress("unused")
@Deprecated("Scheduled for removal in 1.8", level = DeprecationLevel.ERROR)
@Deprecated("Scheduled for removal in 2.0", level = DeprecationLevel.ERROR)
@PublishedApi
internal fun <T> createResultSet(withValue: T, initialSize: Int = 16): MutableSet<T> {
return LinkedHashSet<T>(initialSize).also { it.add(withValue) }
}
@Suppress("unused")
@Deprecated("Scheduled for removal in 1.8", level = DeprecationLevel.ERROR)
@Deprecated("Scheduled for removal in 2.0", level = DeprecationLevel.ERROR)
@PublishedApi
internal fun <T> createResultSet(withValues: Iterable<T>, initialSize: Int = 16): MutableSet<T> {
return LinkedHashSet<T>(initialSize).also { it.addAll(withValues) }
}
@Suppress("unused")
@Deprecated("Scheduled for removal in 1.8", level = DeprecationLevel.ERROR)
@Deprecated("Scheduled for removal in 2.0", level = DeprecationLevel.ERROR)
@PublishedApi
internal inline fun <T> closureTo(
destination: MutableSet<T>,