Clean up jvm version targeting

This commit is contained in:
space woodchuck authored and Nite committed 2026-01-23 15:02:40 +00:00
1 parent a676f13719
commit 891be2576d
5 files changed
+6 -25

No files matched your search

+1 -8
View File
@@ -40,13 +40,6 @@ allprojects {
google()
}
// Set Kotlin JVM target to the same for all subprojects
tasks.withType(KotlinCompile).configureEach {
kotlinOptions {
jvmTarget = "21"
}
}
tasks.withType(JavaCompile).tap {
configureEach {
options.compilerArgs.add("-Xlint:deprecation")
@@ -57,4 +50,4 @@ allprojects {
wrapper {
gradleVersion = libs.versions.gradle.get()
distributionType = "all"
}
}
-4
View File
@@ -13,8 +13,4 @@ dependencies {
android {
namespace = 'org.moire.ultrasonic.subsonic.domain'
compileOptions {
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
}
}
-5
View File
@@ -4,11 +4,6 @@ plugins {
apply from: bootstrap.kotlinModule
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
dependencies {
api libs.retrofit
api libs.jacksonConverter
+1 -1
View File
@@ -27,6 +27,6 @@ if (isCodeQualityEnabled) {
parallel = true
}
}
tasks.detekt.jvmTarget = "17"
tasks.detekt.jvmTarget = "21"
}
}
+4 -7
View File
@@ -53,8 +53,10 @@ android {
}
}
kotlinOptions {
jvmTarget = "21"
kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
buildFeatures {
@@ -63,11 +65,6 @@ android {
buildConfig = true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
}
ksp {
arg("room.schemaLocation", "$rootDir/ultrasonic/schemas")
}