mirror of
https://gitlab.com/ultrasonic/ultrasonic.git
synced 2026-10-22 23:42:14 +03:00
Clean up jvm version targeting
This commit is contained in:
1 parent
a676f13719
commit
891be2576d
5 files changed
+6
-25
No files matched your search
+1
-8
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -13,8 +13,4 @@ dependencies {
|
||||
|
||||
android {
|
||||
namespace = 'org.moire.ultrasonic.subsonic.domain'
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_21
|
||||
targetCompatibility JavaVersion.VERSION_21
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
|
||||
@@ -27,6 +27,6 @@ if (isCodeQualityEnabled) {
|
||||
parallel = true
|
||||
}
|
||||
}
|
||||
tasks.detekt.jvmTarget = "17"
|
||||
tasks.detekt.jvmTarget = "21"
|
||||
}
|
||||
}
|
||||
@@ -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")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user