Files
kotlin-fork/analysis/analysis-api-fir/analysis-api-fir-generator/build.gradle.kts
T
Nikita Bobko 2a4f3f41aa 2/5 Replace source dependency on kotlin-reflect with binary dependency
Review: https://jetbrains.team/p/kt/reviews/6753

Meaningful semantic change was splitted into 5 commits to simplify the
change review. Sinle commit would be too big.

Why replace source to binary: to get rid of kotlin-reflect in Kotlin
plugin artifact KTIJ-22276

Note: Kotlin Maven artifacts (./gradlew publish) changed their
dependency on kotlin-reflect
2022-08-22 15:43:49 +02:00

45 lines
1.3 KiB
Kotlin

plugins {
kotlin("jvm")
id("jps-compatible")
application
}
dependencies {
implementation(project(":compiler:resolution.common"))
implementation(project(":compiler:fir:tree"))
implementation(project(":compiler:fir:tree:tree-generator"))
implementation(project(":compiler:fir:checkers:checkers-component-generator"))
implementation(project(":analysis:analysis-api"))
implementation(commonDependency("org.jetbrains.kotlin:kotlin-reflect")) { isTransitive = false }
/*
We do not need guava in the generator, but because of a bug in the IJ project importing, we need to have a dependency on intellijCore
the same as it is in `:fir:tree:tree-generator` module to the project be imported correctly
*/
compileOnly(intellijCore())
compileOnly(commonDependency("com.google.guava:guava"))
implementation(project(":compiler:psi"))
}
val writeCopyright by task<tasks.WriteCopyrightToFile> {
outputFile.set(file("$buildDir/copyright/notice.txt"))
commented.set(true)
}
application {
mainClass.set("org.jetbrains.kotlin.analysis.api.fir.generator.MainKt")
}
val processResources by tasks
processResources.dependsOn(writeCopyright)
sourceSets {
"main" {
projectDefault()
resources.srcDir("$buildDir/copyright")
}
"test" {}
}