Skip to content

Commit 792dbc8

Browse files
committed
Set compiler option to target java 1.8
Setting jvmTarget is not enough, see https://jakewharton.com/kotlins-jdk-release-compatibility-flag/ and https://youtrack.jetbrains.com/issue/KT-49746/.
1 parent 0faae65 commit 792dbc8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build.gradle.kts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@ plugins {
1313
val currentOs = org.gradle.internal.os.OperatingSystem.current()
1414

1515
group = "fr.acinq.bitcoin"
16-
version = "0.25.0"
16+
version = "0.25.1-SNAPSHOT"
1717

1818
repositories {
1919
google()
2020
mavenCentral()
21-
maven(url="https://oss.sonatype.org/content/repositories/snapshots/")
2221
}
2322

2423
kotlin {
@@ -27,6 +26,8 @@ kotlin {
2726
jvm {
2827
compilerOptions {
2928
jvmTarget.set(JvmTarget.JVM_1_8)
29+
// See https://jakewharton.com/kotlins-jdk-release-compatibility-flag/ and https://youtrack.jetbrains.com/issue/KT-49746/
30+
freeCompilerArgs.add("-Xjdk-release=1.8")
3031
}
3132
}
3233

0 commit comments

Comments
 (0)