mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Extract compiler version in Constants.
This commit is contained in:
parent
5d9263eda9
commit
915a8427f4
2 changed files with 4 additions and 1 deletions
|
@ -8,6 +8,7 @@ object Constants {
|
|||
val BUILD_FILE_NAME = "Build.kt"
|
||||
val BUILD_FILE_DIRECTORY = "kobalt/src"
|
||||
val BUILD_FILE_PATH = KFiles.joinDir(BUILD_FILE_DIRECTORY, BUILD_FILE_NAME)
|
||||
val KOTLIN_COMPILER_VERSION = "1.0.6"
|
||||
|
||||
internal val DEFAULT_REPOS = listOf<String>(
|
||||
// "https://maven-central.storage.googleapis.com/",
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package com.beust.kobalt.internal
|
||||
|
||||
import com.beust.kobalt.Constants
|
||||
import com.beust.kobalt.ProxyConfig
|
||||
import com.beust.kobalt.homeDir
|
||||
import com.beust.kobalt.misc.KFiles
|
||||
|
@ -8,6 +9,7 @@ import com.google.inject.Inject
|
|||
import com.google.inject.Singleton
|
||||
import java.io.File
|
||||
import java.io.FileInputStream
|
||||
import java.lang.NumberFormatException
|
||||
import javax.xml.bind.JAXBContext
|
||||
import javax.xml.bind.annotation.XmlElement
|
||||
import javax.xml.bind.annotation.XmlRootElement
|
||||
|
@ -30,7 +32,7 @@ class KobaltSettingsXml {
|
|||
var proxies: ProxiesXml? = null
|
||||
|
||||
@XmlElement(name = "kobaltCompilerVersion") @JvmField
|
||||
var kobaltCompilerVersion: String = "1.0.6"
|
||||
var kobaltCompilerVersion: String = Constants.KOTLIN_COMPILER_VERSION
|
||||
|
||||
@XmlElement(name = "kobaltCompilerRepo") @JvmField
|
||||
var kobaltCompilerRepo: String? = null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue