Skip to content

Commit 5f64f99

Browse files
authored
Set target JVM version to 8 for Hocon module in Gradle metadata (#1661)
Fixes #1189
1 parent a5227cf commit 5f64f99

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

.idea/vcs.xml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

formats/hocon/build.gradle

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,26 @@ apply plugin: 'kotlin'
66
apply plugin: 'kotlinx-serialization'
77

88
compileKotlin {
9-
kotlinOptions.allWarningsAsErrors = true
9+
kotlinOptions {
10+
allWarningsAsErrors = true
11+
jvmTarget = '1.8'
12+
}
1013
}
1114

15+
configurations {
16+
apiElements {
17+
attributes {
18+
attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 8)
19+
}
20+
}
21+
runtimeElements {
22+
attributes {
23+
attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 8)
24+
}
25+
}
26+
}
27+
28+
1229
dependencies {
1330
compile project(':kotlinx-serialization-core')
1431
api 'org.jetbrains.kotlin:kotlin-stdlib'

0 commit comments

Comments
 (0)