Generate Gradle compiler types into separate project
This will allow to use them on the DSL generation. ^KT-27301 In Progress
This commit is contained in:
@@ -8,6 +8,7 @@ dependencies {
|
||||
commonApi(project(":kotlin-project-model"))
|
||||
commonImplementation(project(":kotlin-tooling-core"))
|
||||
|
||||
commonCompileOnly(project(":kotlin-gradle-compiler-types"))
|
||||
commonCompileOnly("com.android.tools.build:gradle:3.6.4") {
|
||||
// Without it - Gradle dependency resolution fails with unexpected error
|
||||
// Caused by: java.lang.IllegalStateException: Unexpected parent dependency id 131. Seen ids: [129, 2, 130, 9, 10, 138, 11, 139, 140, 14, 153, 154, 155, 156, 157, 158, 161, 164, 177, 178, 51, 179, 52, 180, 53, 54, 55, 183, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 195, 68, 200, 201, 202, 203, 206, 211, 212, 215, 222, 223, 224, 231, 232, 105, 233, 106, 107, 108, 109, 110, 111, 112, 113, 114, 242, 115, 243, 116, 244, 117, 118, 119, 120, 121, 122]
|
||||
@@ -16,4 +17,6 @@ dependencies {
|
||||
// Could be reproduced by running `:kotlin-gradle-plugin-api:gPFFPMP` task
|
||||
isTransitive = false
|
||||
}
|
||||
|
||||
embedded(project(":kotlin-gradle-compiler-types"))
|
||||
}
|
||||
|
||||
-15
@@ -1,15 +0,0 @@
|
||||
// DO NOT EDIT MANUALLY!
|
||||
// Generated by org/jetbrains/kotlin/generators/arguments/GenerateGradleOptions.kt
|
||||
package org.jetbrains.kotlin.gradle.dsl
|
||||
|
||||
@Suppress("DEPRECATION")
|
||||
enum class JsDiagnosticMode (val mode: String) {
|
||||
RUNTIME_DIAGNOSTIC_EXCEPTION("exception"),
|
||||
RUNTIME_DIAGNOSTIC_LOG("log");
|
||||
|
||||
companion object {
|
||||
fun fromMode(mode: String): JsDiagnosticMode =
|
||||
JsDiagnosticMode.values().firstOrNull { it.mode == mode }
|
||||
?: throw IllegalArgumentException("Unknown JS diagnostic mode: $mode")
|
||||
}
|
||||
}
|
||||
-15
@@ -1,15 +0,0 @@
|
||||
// DO NOT EDIT MANUALLY!
|
||||
// Generated by org/jetbrains/kotlin/generators/arguments/GenerateGradleOptions.kt
|
||||
package org.jetbrains.kotlin.gradle.dsl
|
||||
|
||||
@Suppress("DEPRECATION")
|
||||
enum class JsMainFunctionExecutionMode (val mode: String) {
|
||||
CALL("call"),
|
||||
NO_CALL("noCall");
|
||||
|
||||
companion object {
|
||||
fun fromMode(mode: String): JsMainFunctionExecutionMode =
|
||||
JsMainFunctionExecutionMode.values().firstOrNull { it.mode == mode }
|
||||
?: throw IllegalArgumentException("Unknown main function execution mode: $mode")
|
||||
}
|
||||
}
|
||||
-18
@@ -1,18 +0,0 @@
|
||||
// DO NOT EDIT MANUALLY!
|
||||
// Generated by org/jetbrains/kotlin/generators/arguments/GenerateGradleOptions.kt
|
||||
package org.jetbrains.kotlin.gradle.dsl
|
||||
|
||||
@Suppress("DEPRECATION")
|
||||
enum class JsModuleKind (val kind: String) {
|
||||
MODULE_AMD("amd"),
|
||||
MODULE_PLAIN("plain"),
|
||||
MODULE_ES("es"),
|
||||
MODULE_COMMONJS("commonjs"),
|
||||
MODULE_UMD("umd");
|
||||
|
||||
companion object {
|
||||
fun fromKind(kind: String): JsModuleKind =
|
||||
JsModuleKind.values().firstOrNull { it.kind == kind }
|
||||
?: throw IllegalArgumentException("Unknown JS module kind: $kind")
|
||||
}
|
||||
}
|
||||
-16
@@ -1,16 +0,0 @@
|
||||
// DO NOT EDIT MANUALLY!
|
||||
// Generated by org/jetbrains/kotlin/generators/arguments/GenerateGradleOptions.kt
|
||||
package org.jetbrains.kotlin.gradle.dsl
|
||||
|
||||
@Suppress("DEPRECATION")
|
||||
enum class JsSourceMapEmbedMode (val mode: String) {
|
||||
SOURCE_MAP_SOURCE_CONTENT_INLINING("inlining"),
|
||||
SOURCE_MAP_SOURCE_CONTENT_NEVER("never"),
|
||||
SOURCE_MAP_SOURCE_CONTENT_ALWAYS("always");
|
||||
|
||||
companion object {
|
||||
fun fromMode(mode: String): JsSourceMapEmbedMode =
|
||||
JsSourceMapEmbedMode.values().firstOrNull { it.mode == mode }
|
||||
?: throw IllegalArgumentException("Unknown JS source map embed mode: $mode")
|
||||
}
|
||||
}
|
||||
-25
@@ -1,25 +0,0 @@
|
||||
// DO NOT EDIT MANUALLY!
|
||||
// Generated by org/jetbrains/kotlin/generators/arguments/GenerateGradleOptions.kt
|
||||
package org.jetbrains.kotlin.gradle.dsl
|
||||
|
||||
@Suppress("DEPRECATION")
|
||||
enum class JvmTarget (val target: String) {
|
||||
@Deprecated("Will be removed soon") JVM_1_6("1.6"),
|
||||
JVM_1_8("1.8"),
|
||||
JVM_9("9"),
|
||||
JVM_10("10"),
|
||||
JVM_11("11"),
|
||||
JVM_12("12"),
|
||||
JVM_13("13"),
|
||||
JVM_14("14"),
|
||||
JVM_15("15"),
|
||||
JVM_16("16"),
|
||||
JVM_17("17"),
|
||||
JVM_18("18");
|
||||
|
||||
companion object {
|
||||
fun fromTarget(target: String): JvmTarget =
|
||||
JvmTarget.values().firstOrNull { it.target == target }
|
||||
?: throw IllegalArgumentException("Unknown Kotlin JVM target: $target")
|
||||
}
|
||||
}
|
||||
-23
@@ -1,23 +0,0 @@
|
||||
// DO NOT EDIT MANUALLY!
|
||||
// Generated by org/jetbrains/kotlin/generators/arguments/GenerateGradleOptions.kt
|
||||
package org.jetbrains.kotlin.gradle.dsl
|
||||
|
||||
@Suppress("DEPRECATION")
|
||||
enum class KotlinVersion (val version: String) {
|
||||
@Deprecated("Unsupported", level = DeprecationLevel.ERROR) KOTLIN_1_0("1.0"),
|
||||
@Deprecated("Unsupported", level = DeprecationLevel.ERROR) KOTLIN_1_1("1.1"),
|
||||
@Deprecated("Unsupported", level = DeprecationLevel.ERROR) KOTLIN_1_2("1.2"),
|
||||
@Deprecated("Will be removed soon") KOTLIN_1_3("1.3"),
|
||||
@Deprecated("Will be removed soon") KOTLIN_1_4("1.4"),
|
||||
KOTLIN_1_5("1.5"),
|
||||
KOTLIN_1_6("1.6"),
|
||||
KOTLIN_1_7("1.7"),
|
||||
KOTLIN_1_8("1.8"),
|
||||
KOTLIN_1_9("1.9");
|
||||
|
||||
companion object {
|
||||
fun fromVersion(version: String): KotlinVersion =
|
||||
KotlinVersion.values().firstOrNull { it.version == version }
|
||||
?: throw IllegalArgumentException("Unknown Kotlin version: $version")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user