mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 12:57:04 +05:30
build: enable support for building with Java 17
This commit is contained in:
parent
8fbafa8d47
commit
66b391a2f2
3 changed files with 31 additions and 15 deletions
|
@ -1,3 +1,4 @@
|
|||
import org.gradle.api.tasks.compile.JavaCompile
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
buildscript {
|
||||
|
@ -40,6 +41,10 @@ configure<com.diffplug.gradle.spotless.SpotlessExtension> {
|
|||
}
|
||||
|
||||
allprojects {
|
||||
tasks.withType<JavaCompile>().configureEach {
|
||||
sourceCompatibility = JavaVersion.VERSION_11.toString()
|
||||
targetCompatibility = JavaVersion.VERSION_11.toString()
|
||||
}
|
||||
tasks.withType<KotlinCompile>().configureEach {
|
||||
kotlinOptions {
|
||||
jvmTarget = JavaVersion.VERSION_11.toString()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue