blob: 5b49ec04981efea5acc235f2bf6f8d3fc6c2dec5 [file] [log] [blame] [edit]
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
plugins {
kotlin("jvm")
id("jps-compatible")
id("gradle-plugin-compiler-dependency-configuration")
}
dependencies {
api(kotlinStdlib())
api(project(":compiler:compiler.version"))
api(project(":core:util.runtime"))
compileOnly(intellijCore())
compileOnly(commonDependency("org.jetbrains.intellij.deps:log4j"))
compileOnly(libs.intellij.asm)
compileOnly(jpsModel()) { isTransitive = false }
compileOnly(jpsModelImpl()) { isTransitive = false }
testImplementation(projectTests(":compiler:tests-common"))
testImplementation(intellijCore())
testApi(platform(libs.junit.bom))
testImplementation(libs.junit4)
}
sourceSets {
"main" {
projectDefault()
resources.srcDir(File(rootDir, "resources"))
}
"test" {
projectDefault()
}
}
tasks.withType<KotlinJvmCompile>().configureEach {
compilerOptions.freeCompilerArgs.add("-Xconsistent-data-class-copy-visibility")
}
testsJar()
projectTest(parallel = true) {
workingDir = rootDir
}