From be29f2c0b3ce702230dfe00b4823ef1f35f18fb6 Mon Sep 17 00:00:00 2001 From: Tim Keating Date: Wed, 19 Jul 2017 22:05:45 -0500 Subject: [PATCH] PR feedback: use version constant instead of hard-coded strings --- .../com/beust/kobalt/app/kotlin/KotlinTemplateGenerator.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/beust/kobalt/app/kotlin/KotlinTemplateGenerator.kt b/src/main/kotlin/com/beust/kobalt/app/kotlin/KotlinTemplateGenerator.kt index 096d5d04..4c408d48 100644 --- a/src/main/kotlin/com/beust/kobalt/app/kotlin/KotlinTemplateGenerator.kt +++ b/src/main/kotlin/com/beust/kobalt/app/kotlin/KotlinTemplateGenerator.kt @@ -1,5 +1,6 @@ package com.beust.kobalt.app.kotlin +import com.beust.kobalt.Constants import com.beust.kobalt.app.LanguageTemplateGenerator import com.beust.kobalt.maven.Pom @@ -7,8 +8,8 @@ class KotlinTemplateGenerator : LanguageTemplateGenerator() { override val defaultSourceDirectories = hashSetOf("src/main/kotlin") override val defaultTestDirectories = hashSetOf("src/test/kotlin") override val mainDependencies = arrayListOf( - Pom.Dependency("org.jetbrains.kotlin","kotlin-runtime", null, "1.1.3"), - Pom.Dependency("org.jetbrains.kotlin", "kotlin-stdlib", null, "1.1.3")) + Pom.Dependency("org.jetbrains.kotlin", "kotlin-runtime", null, Constants.KOTLIN_COMPILER_VERSION), + Pom.Dependency("org.jetbrains.kotlin", "kotlin-stdlib", null, Constants.KOTLIN_COMPILER_VERSION)) override val testDependencies = arrayListOf() override val directive = "project" override val templateName = "kotlin"