Skip to content

Commit 452d0b6

Browse files
committed
🐛 Add back support for Java 17
Closes #22
1 parent bd8ed2d commit 452d0b6

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,18 @@ repositories {
1111
}
1212

1313
java {
14+
toolchain {
15+
languageVersion = JavaLanguageVersion.of(21)
16+
}
1417
withJavadocJar()
1518
withSourcesJar()
1619
}
1720

21+
tasks.withType(JavaCompile) {
22+
sourceCompatibility = '17'
23+
targetCompatibility = '17'
24+
}
25+
1826
dependencies {
1927
implementation 'com.google.code.gson:gson:2.11.0'
2028

0 commit comments

Comments
 (0)