7efc9dac9b
Together with extracting codegen to a separate (unrelated) module in the future, hopefully it'll speed up the build of JVM IR by making it more parallel, and helping incremental compilation to avoid recompiling code that depends on lowerings because of `implementation` dependency.
73 lines
2.5 KiB
Kotlin
73 lines
2.5 KiB
Kotlin
plugins {
|
|
kotlin("jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
dependencies {
|
|
compile(project(":compiler:util"))
|
|
compile(project(":compiler:cli-common"))
|
|
compile(project(":compiler:frontend"))
|
|
compile(project(":compiler:frontend.java"))
|
|
compile(project(":compiler:frontend:cfg"))
|
|
compile(project(":compiler:backend-common"))
|
|
compile(project(":compiler:backend"))
|
|
compile(project(":compiler:backend.jvm"))
|
|
implementation(project(":compiler:backend.jvm.lower"))
|
|
implementation(project(":compiler:backend.jvm:backend.jvm.entrypoint"))
|
|
compile(project(":compiler:ir.backend.common"))
|
|
compile(project(":compiler:light-classes"))
|
|
compile(project(":compiler:serialization"))
|
|
compile(project(":compiler:plugin-api"))
|
|
compile(project(":compiler:javac-wrapper"))
|
|
compile(project(":js:js.translator"))
|
|
compile(project(":native:frontend.native"))
|
|
compile(commonDep("org.fusesource.jansi", "jansi"))
|
|
compile(commonDep("org.jline", "jline"))
|
|
compile(project(":compiler:fir:raw-fir:psi2fir"))
|
|
compile(project(":compiler:fir:resolve"))
|
|
compile(project(":compiler:fir:java"))
|
|
implementation(project(":compiler:fir:entrypoint"))
|
|
compile(project(":compiler:fir:fir2ir"))
|
|
compile(project(":compiler:fir:fir2ir:jvm-backend"))
|
|
compile(project(":compiler:fir:checkers"))
|
|
compile(project(":compiler:fir:checkers:checkers.jvm"))
|
|
compile(project(":kotlin-util-klib"))
|
|
compile(project(":kotlin-util-io"))
|
|
|
|
// TODO: as soon as cli-jvm is extracted out of this module, move this dependency there
|
|
compileOnly(project(":compiler:ir.tree.impl"))
|
|
|
|
compileOnly(toolsJarApi())
|
|
compileOnly(intellijCoreDep()) { includeJars("intellij-core") }
|
|
compileOnly(intellijDep()) { includeIntellijCoreJarDependencies(project) }
|
|
|
|
testCompile(project(":compiler:backend"))
|
|
testCompile(project(":compiler:cli"))
|
|
testCompile(projectTests(":compiler:tests-common"))
|
|
testCompile(commonDep("junit:junit"))
|
|
}
|
|
|
|
sourceSets {
|
|
"main" {
|
|
projectDefault()
|
|
java.srcDirs("../builtins-serializer/src")
|
|
}
|
|
"test" { }
|
|
}
|
|
|
|
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
|
|
kotlinOptions {
|
|
languageVersion = "1.4"
|
|
apiVersion = "1.4"
|
|
freeCompilerArgs = freeCompilerArgs - "-progressive" + listOf(
|
|
"-Xskip-prerelease-check", "-Xsuppress-version-warnings", "-Xuse-mixed-named-arguments", "-Xnew-inference"
|
|
)
|
|
}
|
|
}
|
|
|
|
testsJar {}
|
|
|
|
projectTest {
|
|
workingDir = rootDir
|
|
}
|