blob: 9dc7729370a9aab7e86e0550fab235ec3a79244f [file] [log] [blame] [edit]
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(intellijCore())
compileOnly(libs.guava)
compileOnly(commonDependency("org.jetbrains.intellij.deps.fastutil:intellij-deps-fastutil"))
jflexPath(commonDependency("org.jetbrains.intellij.deps.jflex", "jflex"))
}
sourceSets {
"main" { projectDefault() }
"test" {}
}
ant.importBuild("buildLexer.xml")
ant.properties["builddir"] = layout.buildDirectory.get().asFile.absolutePath
tasks.findByName("lexer")!!.apply {
doFirst {
ant.properties["flex.classpath"] = jflexPath.asPath
}
}