[FIR] Introduce new module for jvm specific checkers
This commit is contained in:
committed by
teamcityserver
parent
9825babc23
commit
7f18d147c1
@@ -0,0 +1,39 @@
|
|||||||
|
import org.jetbrains.kotlin.ideaExt.idea
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
kotlin("jvm")
|
||||||
|
id("jps-compatible")
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
api(project(":compiler:fir:checkers"))
|
||||||
|
api(project(":compiler:fir:java"))
|
||||||
|
|
||||||
|
/*
|
||||||
|
* We can't remove this dependency until we use
|
||||||
|
* diagnostics framework from FE 1.0
|
||||||
|
*/
|
||||||
|
implementation(project(":compiler:frontend"))
|
||||||
|
implementation(project(":compiler:psi"))
|
||||||
|
|
||||||
|
compileOnly(project(":kotlin-reflect-api"))
|
||||||
|
compileOnly(intellijCoreDep()) { includeJars("intellij-core", "guava", rootProject = rootProject) }
|
||||||
|
}
|
||||||
|
|
||||||
|
sourceSets {
|
||||||
|
"main" {
|
||||||
|
projectDefault()
|
||||||
|
this.java.srcDir("gen")
|
||||||
|
}
|
||||||
|
"test" { none() }
|
||||||
|
}
|
||||||
|
|
||||||
|
val compileKotlin by tasks
|
||||||
|
compileKotlin.dependsOn(":compiler:fir:checkers:generateCheckersComponents")
|
||||||
|
|
||||||
|
if (kotlinBuildProperties.isInJpsBuildIdeaSync) {
|
||||||
|
apply(plugin = "idea")
|
||||||
|
idea {
|
||||||
|
this.module.generatedSourceDirs.add(projectDir.resolve("gen"))
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -11,6 +11,7 @@ dependencies {
|
|||||||
api(project(":compiler:fir:raw-fir:light-tree2fir"))
|
api(project(":compiler:fir:raw-fir:light-tree2fir"))
|
||||||
api(project(":compiler:fir:fir2ir"))
|
api(project(":compiler:fir:fir2ir"))
|
||||||
api(project(":compiler:fir:checkers"))
|
api(project(":compiler:fir:checkers"))
|
||||||
|
api(project(":compiler:fir:checkers:checkers.jvm"))
|
||||||
|
|
||||||
// TODO: do not use GeneratorExtensions in `FirAnalyzerFacade.convertToIr`, and make this an 'implementation' dependency.
|
// TODO: do not use GeneratorExtensions in `FirAnalyzerFacade.convertToIr`, and make this an 'implementation' dependency.
|
||||||
api(project(":compiler:ir.psi2ir"))
|
api(project(":compiler:ir.psi2ir"))
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ dependencies {
|
|||||||
compile(project(":compiler:ir.tree"))
|
compile(project(":compiler:ir.tree"))
|
||||||
compile(project(":compiler:fir:resolve"))
|
compile(project(":compiler:fir:resolve"))
|
||||||
compile(project(":compiler:fir:checkers"))
|
compile(project(":compiler:fir:checkers"))
|
||||||
|
compile(project(":compiler:fir:checkers:checkers.jvm"))
|
||||||
compile(project(":compiler:fir:java"))
|
compile(project(":compiler:fir:java"))
|
||||||
compile(project(":compiler:fir:jvm"))
|
compile(project(":compiler:fir:jvm"))
|
||||||
compile(project(":idea:idea-frontend-fir:idea-fir-low-level-api"))
|
compile(project(":idea:idea-frontend-fir:idea-fir-low-level-api"))
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ dependencies {
|
|||||||
compile(project(":compiler:ir.serialization.common"))
|
compile(project(":compiler:ir.serialization.common"))
|
||||||
compile(project(":compiler:fir:resolve"))
|
compile(project(":compiler:fir:resolve"))
|
||||||
compile(project(":compiler:fir:checkers"))
|
compile(project(":compiler:fir:checkers"))
|
||||||
|
compile(project(":compiler:fir:checkers:checkers.jvm"))
|
||||||
compile(project(":compiler:fir:java"))
|
compile(project(":compiler:fir:java"))
|
||||||
compile(project(":compiler:fir:jvm"))
|
compile(project(":compiler:fir:jvm"))
|
||||||
implementation(project(":compiler:ir.psi2ir"))
|
implementation(project(":compiler:ir.psi2ir"))
|
||||||
|
|||||||
@@ -277,6 +277,7 @@ include ":compiler:fir:cones",
|
|||||||
":compiler:fir:dump",
|
":compiler:fir:dump",
|
||||||
":compiler:fir:jvm",
|
":compiler:fir:jvm",
|
||||||
":compiler:fir:checkers",
|
":compiler:fir:checkers",
|
||||||
|
":compiler:fir:checkers:checkers.jvm",
|
||||||
":compiler:fir:checkers:checkers-component-generator",
|
":compiler:fir:checkers:checkers-component-generator",
|
||||||
":compiler:fir:entrypoint",
|
":compiler:fir:entrypoint",
|
||||||
":compiler:fir:analysis-tests",
|
":compiler:fir:analysis-tests",
|
||||||
|
|||||||
Reference in New Issue
Block a user