Skip to content

Commit

Permalink
fix: enforce java 1.8 compatibility with built artifacts (#3330)
Browse files Browse the repository at this point in the history
  • Loading branch information
iBotPeaches committed Sep 13, 2023
1 parent 515af4f commit f3936cb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@ plugins {
signing
}

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

tasks.withType<JavaCompile> {
options.compilerArgs.add("-Xlint:-options")
options.compilerArgs.add("--release 8")
Expand All @@ -95,6 +90,11 @@ subprojects {
apply(plugin = "java")
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")

if (project.name in mavenProjects) {
Expand Down

0 comments on commit f3936cb

Please sign in to comment.