Skip to content

Commit b3e72af

Browse files
committed
updated kotlin version to v1.4.32 and restored repository in build-file
1 parent d49d64c commit b3e72af

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

build.gradle.kts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
22

33
plugins {
4-
kotlin("jvm") version "1.4.10"
4+
kotlin("jvm") version "1.4.32"
55
id("com.github.johnrengelman.shadow") version "5.2.0"
66
}
77

8+
repositories {
9+
mavenCentral()
10+
}
11+
812
group = "com.github.holgerbrandl.kscript.launcher"
913

1014
//val kotlinVersion: String by rootProject.extra
11-
val kotlinVersion: String ="1.4.10"
15+
val kotlinVersion: String ="1.4.32"
1216

1317
dependencies {
1418
compile("com.offbytwo:docopt:0.6.0.20150202")

src/main/kotlin/kscript/app/AppHelpers.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fun evalBash(cmd: String, wd: File? = null,
3030

3131
fun runProcess(cmd: String, wd: File? = null): ProcessResult {
3232
val parts = cmd.split("\\s".toRegex())
33-
return runProcess(cmd = parts.toTypedArray(), wd = wd)
33+
return runProcess(*parts.toTypedArray(), wd = wd)
3434
}
3535

3636
fun runProcess(vararg cmd: String, wd: File? = null,
@@ -344,7 +344,8 @@ $kotlinOptions
344344
val projectPath = tmpProjectDir.absolutePath
345345

346346
// Create gradle wrapper
347-
requireInPath("$gradleCommand", "Could not find '$gradleCommand' in your PATH. You must set the command used to launch your intellij as 'KSCRIPT_GRADLE_COMMAND' env property")
347+
requireInPath(gradleCommand, "Could not find '$gradleCommand' in your PATH. You must set the command used to launch your intellij as 'KSCRIPT_GRADLE_COMMAND' env property")
348+
348349
runProcess("$gradleCommand wrapper", wd = tmpProjectDir)
349350

350351
infoMsg("Project set up at $projectPath")

0 commit comments

Comments
 (0)