| plugins { |
| kotlin("jvm") |
| id("jps-compatible") |
| } |
| |
| 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(libs.intellij.fastutil) |
| |
| implementation(project(":compiler:psi:psi-api")) |
| |
| jflexPath(commonDependency("org.jetbrains.intellij.deps.jflex", "jflex")) { |
| // Flex brings many unrelated dependencies, so we are dropping them because only a flex `.jar` file is needed. |
| // It can be probably removed when https://github.com/JetBrains/intellij-deps-jflex/issues/10 is fixed. |
| isTransitive = false |
| } |
| } |
| |
| 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 |
| } |
| } |