File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change
1
+ import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
2
+
1
3
/*
2
4
* Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
3
5
*/
@@ -36,6 +38,18 @@ kotlin {
36
38
jvmToolchain(21 )
37
39
38
40
compilerOptions {
41
+ languageVersion = rootProject.findProperty(" kotlin_language_version" )
42
+ ?.let { KotlinVersion .fromVersion(it.toString()) }
43
+ ? : KotlinVersion .KOTLIN_2_1
44
+
45
+ println (" Using languageVersion :ktor-test-server: ${languageVersion.get()} " )
46
+
47
+ apiVersion = rootProject.findProperty(" kotlin_api_version" )
48
+ ?.let { KotlinVersion .fromVersion(it.toString()) }
49
+ ? : KotlinVersion .KOTLIN_2_1
50
+
51
+ println (" Using apiVersion :ktor-test-server: ${apiVersion.get()} " )
52
+
39
53
allWarningsAsErrors = true
40
54
// A workaround for a compiler issue KT-74984
41
55
// TODO: Remove after the issue is fixed
You can’t perform that action at this time.
0 commit comments