[Gradle, K/N] Stop using enableEndorsedLibs Gradle flag, make it Error
#KT-54098 Fixed
This commit is contained in:
committed by
Space Team
parent
3b75658113
commit
67c4dc3cce
-17
@@ -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"
|
||||
|
||||
-17
@@ -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
@@ -1 +0,0 @@
|
||||
rootProject.name = "native-endorsed"
|
||||
-9
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user