[Gradle, K/N] Remove the enableEndorsedLibs flag

This is the last stage of the flag's deprecation cycle.
^KT-56455 Fixed
This commit is contained in:
Alexander.Likhachev
2023-11-13 23:01:01 +01:00
committed by Space Team
parent 722d901d69
commit 11e0edc124
4 changed files with 0 additions and 35 deletions
@@ -54,14 +54,6 @@ abstract class AbstractKotlinNativeCompilation internal constructor(
internal val useGenericPluginArtifact: Boolean
get() = project.nativeUseEmbeddableCompilerJar
// Endorsed library controller.
@Suppress("unused")
@Deprecated(
"Please declare explicit dependency on kotlinx-cli. This option has no longer effect since 1.9.0",
level = DeprecationLevel.ERROR
)
var enableEndorsedLibs: Boolean = false
}
open class KotlinNativeCompilation @Inject internal constructor(
@@ -329,15 +329,6 @@ constructor(
objectFactory.property(it.file(filename).asFile)
}
@Suppress("unused", "DeprecatedCallableAddReplaceWith")
@Deprecated(
"Please declare explicit dependency on kotlinx-cli. This option has no longer effect since 1.9.0",
level = DeprecationLevel.ERROR
)
@get:Input
val enableEndorsedLibs: Boolean
get() = false
@Internal
val compilerPluginOptions = CompilerPluginOptions()
@@ -217,15 +217,6 @@ abstract class AbstractKotlinNativeCompile<
get() = compilation.compilerOptions.options.progressiveMode.get()
// endregion.
@Suppress("DeprecatedCallableAddReplaceWith")
@Deprecated(
"Please declare explicit dependency on kotlinx-cli. This option has no longer effect since 1.9.0",
level = DeprecationLevel.ERROR
)
@get:Input
val enableEndorsedLibs: Boolean
get() = false
@get:Input
val kotlinNativeVersion: String = project.konanVersion
@@ -69,13 +69,6 @@ abstract class KotlinNativeLinkArtifactTask @Inject constructor(
@get:Input
abstract val debuggable: Property<Boolean>
@Deprecated(
"Please declare explicit dependency on kotlinx-cli. This option has no longer effect since 1.9.0",
level = DeprecationLevel.ERROR
)
@get:Input
abstract val enableEndorsedLibs: Property<Boolean>
@get:Input
abstract val processTests: Property<Boolean>
@@ -189,8 +182,6 @@ abstract class KotlinNativeLinkArtifactTask @Inject constructor(
baseName.convention(project.name)
debuggable.convention(true)
optimized.convention(false)
@Suppress("DEPRECATION_ERROR")
enableEndorsedLibs.value(false).finalizeValue()
processTests.convention(false)
staticFramework.convention(false)
destinationDir.convention(debuggable.flatMap {