Skip to content

Commit 3a1278a

Browse files
committed
build: Change minimal Java version to 11
1 parent e472062 commit 3a1278a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- Update required CommandAPI to 8.0.0+
1414
- Update required Mimic to 0.8.0+
1515
- Update Kotlin to 1.7.10
16+
- Minimal Java version set to 11
1617

1718
## [v0.1.2] (2022-01-07)
1819

buildSrc/src/main/kotlin/kotlin-convention.gradle.kts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,17 @@ plugins {
77

88
description = rootProject.description
99

10-
tasks.withType<JavaCompile>().configureEach {
11-
sourceCompatibility = "1.8"
12-
targetCompatibility = "1.8"
13-
options.encoding = "UTF-8"
10+
java {
11+
sourceCompatibility = JavaVersion.VERSION_11
12+
targetCompatibility = JavaVersion.VERSION_11
1413
}
1514

1615
tasks.withType<KotlinCompile>().configureEach {
1716
kotlinOptions {
18-
jvmTarget = "1.8"
19-
apiVersion = "1.6"
20-
languageVersion = "1.6"
21-
freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
17+
jvmTarget = "11"
18+
apiVersion = "1.7"
19+
languageVersion = "1.7"
20+
freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
2221
}
2322
}
2423

0 commit comments

Comments
 (0)