@@ -19,24 +19,24 @@ buildscript {
1919}
2020
2121plugins {
22- id(" org.jetbrains.kotlin.jvm" ) version " 1.2.50 " // kept in sync with IntelliJ's bundled dep
22+ id(" org.jetbrains.kotlin.jvm" ) version " 1.2.51 " // kept in sync with IntelliJ's bundled dep
2323 groovy
2424 idea
25- id(" org.jetbrains.intellij" ) version " 0.3.4 "
26- id(" net.minecrell.licenser" ) version " 0.4"
25+ id(" org.jetbrains.intellij" ) version " 0.3.5 "
26+ id(" net.minecrell.licenser" ) version " 0.4.1 "
2727}
2828
2929defaultTasks(" build" )
3030
3131val CI = System .getenv(" CI" ) != null
3232
33- val ideaVersion: String by extra
34- val downloadIdeaSources: String by extra
33+ val ideaVersion: String by project
34+ val downloadIdeaSources: String by project
3535
3636// for publishing nightlies
37- val repoUsername: String by extra
38- val repoPassword: String by extra
39- val repoChannel: String by extra
37+ val repoUsername: String by project
38+ val repoPassword: String by project
39+ val repoChannel: String by project
4040
4141val compileKotlin by tasks
4242val processResources: AbstractCopyTask by tasks
@@ -207,11 +207,11 @@ fun generateLexer(name: String, flex: String, pack: String) = task<JavaExec>(nam
207207}
208208
209209fun generatePsiAndParser (name : String , bnf : String , pack : String ) = task<JavaExec >(name) {
210- val src = " src/main/grammars/$bnf .bnf" .replace(" / " , File .separator )
210+ val src = " src/main/grammars/$bnf .bnf" .replace(' / ' , File .separatorChar )
211211 val dstRoot = " gen"
212- val dst = " $dstRoot /com/demonwav/mcdev/$pack " .replace(" / " , File .separator )
213- val psiDir = " $dst /psi/" .replace(" / " , File .separator )
214- val parserDir = " $dst /parser/" .replace(" / " , File .separator )
212+ val dst = " $dstRoot /com/demonwav/mcdev/$pack " .replace(' / ' , File .separatorChar )
213+ val psiDir = " $dst /psi/" .replace(' / ' , File .separatorChar )
214+ val parserDir = " $dst /parser/" .replace(' / ' , File .separatorChar )
215215
216216 doFirst {
217217 delete(psiDir, parserDir)
@@ -255,8 +255,6 @@ clean.delete(generate)
255255runIde {
256256 maxHeapSize = " 2G"
257257
258- (findProperty(" intellijJre" ) as ? String )?.let (this ::setExecutable)
259-
260258 System .getProperty(" debug" )?.let {
261259 systemProperty(" idea.ProcessCanceledException" , " disabled" )
262260 systemProperty(" idea.debug.mode" , " true" )
0 commit comments