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:
@@ -0,0 +1,16 @@
|
||||
plugins {
|
||||
id("org.jetbrains.kotlin.jvm")
|
||||
id("jps-compatible")
|
||||
}
|
||||
|
||||
configureKotlinCompileTasksGradleCompatibility()
|
||||
|
||||
sourceSets {
|
||||
"main" {
|
||||
kotlin.srcDir("src/generated/kotlin")
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly(kotlinStdlib())
|
||||
}
|
||||
@@ -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"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user