Replace kotlinBaseVer with a new kotlinSplitVersion variable
This commit is contained in:
parent
81809efefb
commit
4793b033ff
|
@ -33,7 +33,7 @@ val groupAndName = "${rootProject.group}.${rootProject.name.toLowerCase()}"
|
|||
|
||||
val javaVer: String = "8"
|
||||
val kotlinVer: String by rootProject
|
||||
val kotlinBaseVer = kotlinVer.substring(0..2)
|
||||
val kotlinSplitVersion = kotlinVer.split('.')
|
||||
val serializationVer: String by rootProject
|
||||
val mcBase: String = (rootProject.property("minecraft") as String).also {
|
||||
architectury { minecraft = it }
|
||||
|
@ -207,8 +207,8 @@ allprojects {
|
|||
"-Xopt-in=kotlin.RequiresOptIn", "-Xextended-compiler-checks", "-Xassertions=jvm", "-progressive"
|
||||
)
|
||||
jvmTarget = if (javaVer.toInt() < 9) "1.$javaVer" else javaVer
|
||||
languageVersion = (kotlinBaseVer.toDouble() + 0.1).toString()
|
||||
apiVersion = kotlinBaseVer
|
||||
languageVersion = (kotlinSplitVersion[0] + '.' + (kotlinSplitVersion[1].toShort() + 1).toString())
|
||||
apiVersion = "${kotlinSplitVersion[0]}.${kotlinSplitVersion[1]}"
|
||||
}
|
||||
}
|
||||
withType(JavaCompile::class) {
|
||||
|
|
Loading…
Reference in New Issue