[Gradle, K/N] Stop using enableEndorsedLibs Gradle flag, make it Error

#KT-54098 Fixed
This commit is contained in:
Alexander.Likhachev
2023-01-25 23:27:47 +01:00
committed by Space Team
parent 3b75658113
commit 67c4dc3cce
15 changed files with 66 additions and 79 deletions
@@ -139,23 +139,6 @@ class GeneralNativeIT : BaseGradleIT() {
}
}
@Test
fun testEndorsedLibsController() {
with(
transformNativeTestProjectWithPluginDsl("native-endorsed")
) {
build("build") {
assertSuccessful()
}
gradleBuildScript().modify {
it.replace("enableEndorsedLibs = true", "")
}
build("build") {
assertFailed()
}
}
}
@Test
fun testCanProduceNativeLibraries() = with(transformNativeTestProjectWithPluginDsl("libraries", directoryPrefix = "native-binaries")) {
val baseName = "native_library"
@@ -1,17 +0,0 @@
plugins {
id("org.jetbrains.kotlin.multiplatform").version("<pluginMarkerVersion>")
}
repositories {
mavenLocal()
mavenCentral()
}
kotlin {
<SingleNativeTarget>("host") {
compilations.all {
kotlinOptions.verbose = true
enableEndorsedLibs = true
}
}
}
@@ -1,9 +0,0 @@
import kotlinx.cli.*
fun main(args: Array<String>) {
val argParser = ArgParser("test")
val size by argParser.option(ArgType.Int, shortName = "s", description = "Required size of videoplayer window")
.delimiter(",")
val fileName by argParser.argument(ArgType.String, description = "File to play")
argParser.parse(args)
}