Update kotlin to the 1.6.0 version and update ktor to the 1.6.5 version

This commit is contained in:
Username404 2021-11-21 14:33:16 +01:00
parent 54067e7278
commit 25b46a4755
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
2 changed files with 7 additions and 4 deletions

View File

@ -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) {

View File

@ -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