Files
kotlin-fork/compiler/psi/build.gradle.kts
T
Vyacheslav Gerasimov ab146bd6d4 Build: Fix deprecated Gradle configurations usages
for migration to Gradle 7+ #KTI-559
2021-09-26 18:28:44 +03:00

40 lines
882 B
Kotlin

plugins {
kotlin("jvm")
id("jps-compatible")
}
repositories {
maven("https://packages.jetbrains.team/maven/p/ij/intellij-dependencies")
}
val jflexPath by configurations.creating
dependencies {
api(project(":core:compiler.common"))
api(project(":compiler:util"))
api(project(":compiler:frontend.common"))
api(project(":kotlin-script-runtime"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") }
compileOnly(intellijDep()) { includeJars("guava", "trove4j", rootProject = rootProject) }
jflexPath(commonDep("org.jetbrains.intellij.deps.jflex", "jflex"))
}
sourceSets {
"main" { projectDefault() }
"test" {}
}
ant.importBuild("buildLexer.xml")
ant.properties["builddir"] = buildDir.absolutePath
tasks.findByName("lexer")!!.apply {
doFirst {
ant.properties["flex.classpath"] = jflexPath.asPath
}
}