a19bd2ed2e
It's going to be deprecated in Gradle 8.3 There's currently no way to pass a `org.gradle.api.provider.Provider` to the JavaExec.systemProperty or Test.systemProperty. There's a workaround using `org.gradle.process.CommandLineArgumentProvider`, but I intentionally don't rework these calls as Gradle is going to allow passing providers to configure system properties: https://github.com/gradle/gradle/issues/12247#issuecomment-1568427242 ^KTI-1473 In Progress
41 lines
886 B
Kotlin
41 lines
886 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(intellijCore())
|
|
compileOnly(libs.guava)
|
|
compileOnly(commonDependency("org.jetbrains.intellij.deps:trove4j"))
|
|
|
|
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
|
|
}
|
|
}
|