1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 00:17:11 -07:00

PR feedback: use version constant instead of hard-coded strings

This commit is contained in:
Tim Keating 2017-07-19 22:05:45 -05:00
parent 9e6b3d26db
commit be29f2c0b3

View file

@ -1,5 +1,6 @@
package com.beust.kobalt.app.kotlin package com.beust.kobalt.app.kotlin
import com.beust.kobalt.Constants
import com.beust.kobalt.app.LanguageTemplateGenerator import com.beust.kobalt.app.LanguageTemplateGenerator
import com.beust.kobalt.maven.Pom import com.beust.kobalt.maven.Pom
@ -7,8 +8,8 @@ class KotlinTemplateGenerator : LanguageTemplateGenerator() {
override val defaultSourceDirectories = hashSetOf("src/main/kotlin") override val defaultSourceDirectories = hashSetOf("src/main/kotlin")
override val defaultTestDirectories = hashSetOf("src/test/kotlin") override val defaultTestDirectories = hashSetOf("src/test/kotlin")
override val mainDependencies = arrayListOf( override val mainDependencies = arrayListOf(
Pom.Dependency("org.jetbrains.kotlin","kotlin-runtime", null, "1.1.3"), Pom.Dependency("org.jetbrains.kotlin", "kotlin-runtime", null, Constants.KOTLIN_COMPILER_VERSION),
Pom.Dependency("org.jetbrains.kotlin", "kotlin-stdlib", null, "1.1.3")) Pom.Dependency("org.jetbrains.kotlin", "kotlin-stdlib", null, Constants.KOTLIN_COMPILER_VERSION))
override val testDependencies = arrayListOf<Pom.Dependency>() override val testDependencies = arrayListOf<Pom.Dependency>()
override val directive = "project" override val directive = "project"
override val templateName = "kotlin" override val templateName = "kotlin"