Files
kotlin-fork/prepare/analysis-api-test-framework/build.gradle.kts
T
Marco Pennekamp ee7c67ba11 [LL] Add LL API module for JDK 11 tests to support Lincheck tests
- Lincheck is compiled with JDK 11 and the `low-level-api-fir` module is
  based on the JDK 8 toolchain, so we need to add a new module with a
  JDK 11 toolchain to support Lincheck tests. We cannot bump
  `low-level-api-fir` to JDK 11 because `low-level-api-fir-for-ide`
  requires it to be based on a JDK 8 toolchain.
- Using a Gradle test suite is unfortunately not an option, because
  `low-level-api-fir-for-ide` will think that the whole
  `low-level-api-fir` module is compiled with JDK 11 if just a single
  test suite has this toolchain.

^KT-62136
2023-12-05 21:31:32 +00:00

38 lines
828 B
Kotlin

plugins {
java
}
val testModules = listOf(
":analysis:analysis-api-fir",
":analysis:low-level-api-fir",
":analysis:low-level-api-fir:tests-jdk11",
":analysis:analysis-test-framework",
":analysis:analysis-api-impl-barebone",
":analysis:analysis-api-impl-base",
":analysis:analysis-api-standalone",
":analysis:decompiled:decompiler-to-file-stubs",
)
val mainModules = listOf(
":kotlin-preloader",
)
dependencies {
testModules.forEach {
embedded(projectTests(it)) { isTransitive = false }
}
mainModules.forEach {
embedded(project(it)) { isTransitive = false }
}
}
publish()
runtimeJar()
sourcesJar {
from {
mainModules.map { project(it).mainSourceSet.allSource } + testModules.map { project(it).testSourceSet.allSource }
}
}
javadocJar()