Skip to content

Commit 8f01ddc

Browse files
committed
Update Gradle wrapper, Kotlin and other minor build script cleanup
1 parent 8b0faec commit 8f01ddc

File tree

5 files changed

+16
-17
lines changed

5 files changed

+16
-17
lines changed

build.gradle.kts

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,24 @@ buildscript {
1919
}
2020

2121
plugins {
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

2929
defaultTasks("build")
3030

3131
val 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

4141
val compileKotlin by tasks
4242
val processResources: AbstractCopyTask by tasks
@@ -207,11 +207,11 @@ fun generateLexer(name: String, flex: String, pack: String) = task<JavaExec>(nam
207207
}
208208

209209
fun 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)
255255
runIde {
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")

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# suppress inspection "UnusedProperty" for whole file
1212
ideaVersion = 2018.2
1313

14+
name = MinecraftDev
1415
group = com.demonwav.minecraft-dev
1516
version = 2018.2-1.2.9
1617
downloadIdeaSources = true

gradle/wrapper/gradle-wrapper.jar

84 Bytes
Binary file not shown.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#Sat Jan 13 14:35:28 CST 2018
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.8.1-all.zip

settings.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88
* MIT License
99
*/
1010

11-
rootProject.name = "MinecraftDev"
11+
val name: String by settings
12+
rootProject.name = name

0 commit comments

Comments
 (0)