Use foojay-resolver and set all java version to 21

This commit is contained in:
Fabian Wiesel
2024-02-25 21:24:18 +01:00
parent 029e82941e
commit dee59d4735
3 changed files with 10 additions and 15 deletions

View File

@@ -27,12 +27,12 @@ android {
warning 'MissingTranslation'
}
compileOptions {
// Sets Java compatibility to Java 17
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
// Sets Java compatibility to Java 21
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
}
kotlin {
jvmToolchain(17)
jvmToolchain(21)
}
}

View File

@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
@@ -31,14 +33,3 @@ repositories {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
}
compileKotlin {
kotlinOptions {
jvmTarget = "17"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "17"
}
}

View File

@@ -1 +1,5 @@
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}
include ':app'