diff --git a/app/build.gradle.kts b/app/build.gradle.kts index e4c186e50..037c3cb53 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -18,6 +18,12 @@ val gitWorkingBranch = providers.exec { commandLine("git", "rev-parse", "--abbrev-ref", "HEAD") }.standardOutput.asText.map { it.trim() } +java { + toolchain { + languageVersion = JavaLanguageVersion.of(17) + } +} + android { compileSdk = 36 namespace = "org.schabi.newpipe" @@ -87,16 +93,9 @@ android { compileOptions { // Flag to enable support for the new language APIs isCoreLibraryDesugaringEnabled = true - - sourceCompatibility = JavaVersion.VERSION_17 - targetCompatibility = JavaVersion.VERSION_17 encoding = "utf-8" } - kotlinOptions { - jvmTarget = "17" - } - sourceSets { getByName("androidTest") { assets.srcDir("$projectDir/schemas")