Files
kotlin-fork/compiler/fir/tree/tree-generator/build.gradle.kts
T
2020-11-11 14:28:54 +03:00

48 lines
1.2 KiB
Kotlin

import tasks.WriteCopyrightToFile
plugins {
kotlin("jvm")
id("jps-compatible")
application
}
val runtimeOnly by configurations
val compileOnly by configurations
runtimeOnly.extendsFrom(compileOnly)
dependencies {
implementation(project(":core:compiler.common"))
implementation(project(":compiler:frontend.common"))
implementation(project(":compiler:fir:cones"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core", "guava", rootProject = rootProject) }
Platform[193].orLower {
compileOnly(intellijDep()) { includeJars("picocontainer", rootProject = rootProject) }
}
compileOnly(intellijDep()) {
includeJars("trove4j", rootProject = rootProject)
}
runtimeOnly(intellijCoreDep()) { includeJars("jdom") }
}
val writeCopyright by task<WriteCopyrightToFile> {
outputFile = file("$buildDir/copyright/notice.txt")
commented = true
}
application {
mainClassName = "org.jetbrains.kotlin.fir.tree.generator.MainKt"
}
val processResources by tasks
processResources.dependsOn(writeCopyright)
sourceSets {
"main" {
projectDefault()
resources.srcDir("$buildDir/copyright")
}
"test" {}
}