Skip to content

Commit 20746c6

Browse files
hj-leeholgerbrandl
authored andcommitted
Replace hardcoded kotlin version to KotlinVersion.CURRENT (#150)
1 parent e82c55f commit 20746c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ fun launchIdeaWithKscriptlet(scriptFile: File, dependencies: List<String>, custo
214214

215215
val gradleScript = """
216216
plugins {
217-
id "org.jetbrains.kotlin.jvm" version "1.2.41"
217+
id "org.jetbrains.kotlin.jvm" version "${KotlinVersion.CURRENT}"
218218
}
219219
220220
repositories {
@@ -296,7 +296,7 @@ fun packageKscript(scriptJar: File, wrapperClassName: String, dependencies: List
296296

297297
val gradleScript = """
298298
plugins {
299-
id "org.jetbrains.kotlin.jvm" version "1.2.41"
299+
id "org.jetbrains.kotlin.jvm" version "${KotlinVersion.CURRENT}"
300300
id "us.kirchmeier.capsule" version "1.0.2"
301301
}
302302
@@ -310,7 +310,7 @@ dependencies {
310310
compile "org.jetbrains.kotlin:kotlin-stdlib"
311311
$stringifiedDeps
312312
313-
compile group: 'org.jetbrains.kotlin', name: 'kotlin-script-runtime', version: '1.2.41'
313+
compile group: 'org.jetbrains.kotlin', name: 'kotlin-script-runtime', version: '${KotlinVersion.CURRENT}'
314314
315315
// https://stackoverflow.com/questions/20700053/how-to-add-local-jar-file-dependency-to-build-gradle-file
316316
compile files('${scriptJar}')

0 commit comments

Comments
 (0)