File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -189,6 +189,8 @@ subprojects {
189189 tasks.withType<KotlinCompile > {
190190 compilerOptions {
191191 jvmTarget.set(projectJvmTarget)
192+ apiVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion .KOTLIN_2_0 )
193+ languageVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion .KOTLIN_2_0 )
192194 freeCompilerArgs = listOf (
193195 " -Xjvm-default=all" ,
194196 )
Original file line number Diff line number Diff line change @@ -1240,7 +1240,7 @@ public abstract interface class okhttp3/TrailersSource {
12401240 public static final field Companion Lokhttp3/TrailersSource$Companion;
12411241 public static final field EMPTY Lokhttp3/TrailersSource;
12421242 public abstract fun get ()Lokhttp3/Headers;
1243- public fun peek ()Lokhttp3/Headers;
1243+ public abstract fun peek ()Lokhttp3/Headers;
12441244}
12451245
12461246public final class okhttp3/TrailersSource$Companion {
Original file line number Diff line number Diff line change @@ -50,6 +50,11 @@ val generateIdnaMappingTable = tasks.register<JavaExec>("generateIdnaMappingTabl
5050kotlin {
5151 jvmToolchain(8 )
5252
53+ compilerOptions {
54+ apiVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion .KOTLIN_2_0 )
55+ languageVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion .KOTLIN_2_0 )
56+ }
57+
5358 jvm {
5459 }
5560
@@ -284,6 +289,8 @@ afterEvaluate {
284289// but it's easy enough for us to keep it working. https://github.com/square/okhttp/issues/8826
285290tasks.withType<KotlinCompile > {
286291 compilerOptions {
292+ apiVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion .KOTLIN_2_0 )
293+ languageVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion .KOTLIN_2_0 )
287294 freeCompilerArgs = listOf (" -module-name=okhttp" )
288295 }
289296}
You can’t perform that action at this time.
0 commit comments