diff --git a/build.gradle.kts b/build.gradle.kts index 31d79d927ef..4e0dd039565 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -17,7 +17,8 @@ buildscript { "https://plugins.gradle.org/m2") "https://plugins.gradle.org/m2", "http://dl.bintray.com/kotlin/kotlinx", - "https://repo.gradle.org/gradle/libs-releases-local") // for native-platform + "https://repo.gradle.org/gradle/libs-releases-local", // for native-platform + "https://jetbrains.bintray.com/intellij-third-party-dependencies") // for jflex extra["repos"] = repos @@ -131,6 +132,7 @@ extra["versions.ant-launcher"] = "1.8.0" extra["versions.robolectric"] = "3.1" extra["versions.org.springframework"] = "4.2.0.RELEASE" extra["versions.idea.NodeJS"] = "172.3757.32" +extra["versions.jflex"] = "1.7.0" val markdownVer = "4054 - Kotlin 1.0.2-dev-566".replace(" ", "%20") // fixed here, was last with "status:SUCCESS,tag:forKotlin" extra["markdownParserRepo"] = "https://teamcity.jetbrains.com/guestAuth/repository/download/IntelliJMarkdownParser_Build/$markdownVer/([artifact]_[ext]/)[artifact](.[ext])" diff --git a/compiler/frontend/build.gradle.kts b/compiler/frontend/build.gradle.kts index 533b3d805ea..d2b72edb532 100644 --- a/compiler/frontend/build.gradle.kts +++ b/compiler/frontend/build.gradle.kts @@ -3,6 +3,8 @@ apply { plugin("kotlin") } jvmTarget = "1.6" +val jflexPath by configurations.creating + dependencies { compile(project(":core:descriptors")) compile(project(":core:deserialization")) @@ -11,9 +13,15 @@ dependencies { compile(project(":compiler:resolution")) compile(projectDist(":kotlin-script-runtime")) compile(commonDep("io.javaslang","javaslang")) + jflexPath(commonDep("org.jetbrains.intellij.deps.jflex", "jflex")) } sourceSets { "main" { projectDefault() } "test" {} } + +ant.importBuild("buildLexer.xml") + +ant.properties["builddir"] = buildDir.absolutePath +ant.properties["flex.classpath"] = jflexPath.asPath diff --git a/compiler/frontend/buildLexer.xml b/compiler/frontend/buildLexer.xml index 503faa25e9a..355bb20cad5 100644 --- a/compiler/frontend/buildLexer.xml +++ b/compiler/frontend/buildLexer.xml @@ -1,12 +1,13 @@ - - + + + - + @@ -20,7 +21,7 @@ - + @@ -32,7 +33,16 @@ - + + + + + + + + + diff --git a/update_dependencies.xml b/update_dependencies.xml index 46db37dce77..a0932be1042 100644 --- a/update_dependencies.xml +++ b/update_dependencies.xml @@ -133,12 +133,6 @@ - - - -