mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
refactor: set java version for javac-related projects to JAVA_11
This commit is contained in:
Binary file not shown.
@@ -22,15 +22,6 @@ plugins {
|
||||
|
||||
android {
|
||||
namespace = "com.itsaky.androidide.lsp.java"
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
kotlinOptions {
|
||||
jvmTarget = "1.8"
|
||||
}
|
||||
}
|
||||
|
||||
kapt {
|
||||
|
||||
@@ -20,11 +20,6 @@ plugins {
|
||||
id("java-library")
|
||||
}
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(libs.google.guava.jre)
|
||||
implementation(libs.google.auto.value.annotations)
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
plugins {
|
||||
id("com.android.library")
|
||||
id("kotlin-android")
|
||||
@@ -13,16 +11,6 @@ android {
|
||||
isMinifyEnabled = false
|
||||
}
|
||||
}
|
||||
|
||||
// Must be set to Java 8
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType<KotlinCompile> {
|
||||
kotlinOptions.jvmTarget = "1.8"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@@ -20,11 +20,6 @@ plugins {
|
||||
id("java-library")
|
||||
}
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
configurations.all {
|
||||
resolutionStrategy {
|
||||
cacheChangingModulesFor(0, "seconds")
|
||||
|
||||
@@ -28,8 +28,6 @@ apply {
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
|
||||
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@@ -25,11 +25,6 @@ apply {
|
||||
plugin(PropertiesParserPlugin::class)
|
||||
}
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api(projects.subprojects.javaCompiler)
|
||||
api(projects.subprojects.jdkCompiler)
|
||||
|
||||
Reference in New Issue
Block a user