Skip to content

Commit 70db5ce

Browse files
author
Hugo Costa
committed
Set apiVersion and languageVersion to 2.0 for backwards compatibility
1 parent 819b318 commit 70db5ce

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

okio/build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,14 @@ kotlin {
6363
optIn("kotlin.contracts.ExperimentalContracts")
6464
}
6565
}
66+
// Some sourceSets do not end with Test, easier to use the negative
67+
matching { !it.name.endsWith("Test") }.all {
68+
// Setting these to allow for backwards compatibility
69+
languageSettings.apply {
70+
apiVersion = "2.0"
71+
languageVersion = "2.0"
72+
}
73+
}
6674
matching { it.name.endsWith("Test") }.all {
6775
languageSettings {
6876
optIn("kotlin.time.ExperimentalTime")

0 commit comments

Comments
 (0)