51 lines
1.3 KiB
Kotlin
51 lines
1.3 KiB
Kotlin
/*
|
|
* Copyright 2000-2018 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
|
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
|
*/
|
|
|
|
import tasks.WriteCopyrightToFile
|
|
|
|
plugins {
|
|
kotlin("jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
val runtimeOnly by configurations
|
|
val compileOnly by configurations
|
|
runtimeOnly.extendsFrom(compileOnly)
|
|
|
|
dependencies {
|
|
compile(project(":compiler:psi"))
|
|
compile(project(":compiler:frontend.common"))
|
|
compile(project(":core:descriptors"))
|
|
compile(project(":compiler:fir:cones"))
|
|
compile(project(":compiler:ir.tree"))
|
|
|
|
compileOnly(intellijCoreDep()) { includeJars("intellij-core", "guava", rootProject = rootProject) }
|
|
compileOnly(intellijDep()) {
|
|
includeJars("trove4j", "picocontainer", rootProject = rootProject)
|
|
}
|
|
|
|
Platform[192].orHigher {
|
|
runtimeOnly(intellijCoreDep()) { includeJars("jdom") }
|
|
}
|
|
implementation(kotlin("reflect"))
|
|
}
|
|
|
|
val writeCopyright by task<WriteCopyrightToFile> {
|
|
outputFile = file("$buildDir/copyright/notice.txt")
|
|
commented = true
|
|
}
|
|
|
|
val processResources by tasks
|
|
processResources.dependsOn(writeCopyright)
|
|
|
|
sourceSets {
|
|
"main" {
|
|
projectDefault()
|
|
resources.srcDir("$buildDir/copyright")
|
|
}
|
|
"test" {}
|
|
}
|
|
|