Update kotlin to the 1.6.0 version and update ktor to the 1.6.5 version
This commit is contained in:
parent
54067e7278
commit
25b46a4755
|
@ -1,5 +1,5 @@
|
|||
plugins {
|
||||
id("org.jetbrains.kotlin.js") version "1.5.20"
|
||||
id("org.jetbrains.kotlin.js") version "1.6.0"
|
||||
}
|
||||
|
||||
group = "fr.username404"
|
||||
|
@ -22,8 +22,11 @@ kotlin {
|
|||
moduleName = "Username404_Website"
|
||||
compilations.all {
|
||||
with(languageSettings) {
|
||||
apiVersion = coreLibrariesVersion.substring(0..2)
|
||||
languageVersion = (apiVersion!!.toDouble() + 0.1).toString()
|
||||
val secondDot = coreLibrariesVersion.let { it.indexOf('.', startIndex = it.indexOf('.') + 1) }
|
||||
apiVersion = coreLibrariesVersion.run {
|
||||
substring(0 until secondDot).also { println(it) }
|
||||
}
|
||||
languageVersion = apiVersion!!.substringBefore('.') + '.' + (apiVersion!!.substringAfter('.').toInt() + 1).toString()
|
||||
progressiveMode = true
|
||||
}
|
||||
with(kotlinOptions) {
|
||||
|
|
|
@ -8,4 +8,4 @@ org.gradle.unsafe.configuration-cache=on
|
|||
org.gradle.vfs.watch=true
|
||||
|
||||
kotlinx-html_version=0.7.3
|
||||
ktor_version=1.6.0
|
||||
ktor_version=1.6.5
|
Loading…
Reference in New Issue