Author: Adam <git@apiote.xyz>
use java 17 target
app/build.gradle | 5 ++--- fruchtfleisch/build.gradle | 7 ++-----
diff --git a/app/build.gradle b/app/build.gradle index 9571baf25a6b7870e3402b5dec6228a446cdc78b..8be1580b790f52766db4daf61ac6fe8773f53274 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -29,10 +29,9 @@ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { + sourceCompatibility = 17 + targetCompatibility = 17 coreLibraryDesugaringEnabled true - } - kotlin { - jvmToolchain(8) } buildFeatures { viewBinding true diff --git a/fruchtfleisch/build.gradle b/fruchtfleisch/build.gradle index 17272883b14494e38349d5d38b74bc3e3efc24fe..730e890c34aca32c1cf7c79d430c86a9f204929a 100644 --- a/fruchtfleisch/build.gradle +++ b/fruchtfleisch/build.gradle @@ -3,13 +3,10 @@ id 'java-library' id 'org.jetbrains.kotlin.jvm' } -kotlin { - jvmToolchain(8) -} dependencies { //implementation 'org.jetbrains.kotlin:kotlin-reflect:1.8.10' } java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 } \ No newline at end of file