mirror of
https://github.com/revanced/Apktool.git
synced 2025-05-02 06:54:25 +02:00
fix: enforce java 1.8 compatibility with built artifacts (#3330)
This commit is contained in:
parent
515af4faf8
commit
f3936cbd22
@ -72,11 +72,6 @@ plugins {
|
|||||||
signing
|
signing
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType<JavaCompile> {
|
tasks.withType<JavaCompile> {
|
||||||
options.compilerArgs.add("-Xlint:-options")
|
options.compilerArgs.add("-Xlint:-options")
|
||||||
options.compilerArgs.add("--release 8")
|
options.compilerArgs.add("--release 8")
|
||||||
@ -95,6 +90,11 @@ subprojects {
|
|||||||
apply(plugin = "java")
|
apply(plugin = "java")
|
||||||
apply(plugin = "java-library")
|
apply(plugin = "java-library")
|
||||||
|
|
||||||
|
java {
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
|
targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
|
}
|
||||||
|
|
||||||
val mavenProjects = arrayOf("apktool-lib", "apktool-cli", "brut.j.common", "brut.j.util", "brut.j.dir")
|
val mavenProjects = arrayOf("apktool-lib", "apktool-cli", "brut.j.common", "brut.j.util", "brut.j.dir")
|
||||||
|
|
||||||
if (project.name in mavenProjects) {
|
if (project.name in mavenProjects) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user