diff --git a/README.md b/README.md index 0077c1d..c2c2f17 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ A tool for reverse engineering Android ROM images. ## Requirements -Make sure you have [JDK17](https://www.oracle.com/java/technologies/downloads/#java17) and [Python3](https://www.python.org/downloads/). +Make sure you have [JDK11+](https://www.oracle.com/java/technologies/downloads/#java17) and [Python3](https://www.python.org/downloads/). * Linux / WSL: `sudo apt install git device-tree-compiler lz4 xz-utils zlib1g-dev openjdk-17-jdk gcc g++ python3 python-is-python3 p7zip-full` diff --git a/bbootimg/build.gradle.kts b/bbootimg/build.gradle.kts index efde796..8f10185 100644 --- a/bbootimg/build.gradle.kts +++ b/bbootimg/build.gradle.kts @@ -57,11 +57,16 @@ application { mainClass.set("cfig.packable.PackableLauncherKt") } +java { + sourceCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_11 +} + tasks.withType().all { kotlinOptions { freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn" freeCompilerArgs += "-opt-in=kotlin.ExperimentalUnsignedTypes" - jvmTarget = "17" + jvmTarget = "11" } } diff --git a/helper/build.gradle.kts b/helper/build.gradle.kts index 61d0ba5..10b34b0 100644 --- a/helper/build.gradle.kts +++ b/helper/build.gradle.kts @@ -49,11 +49,16 @@ dependencies { testImplementation("com.fasterxml.jackson.core:jackson-databind:2.13.3") } +java { + sourceCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_11 +} + tasks.withType().all { kotlinOptions { freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn" freeCompilerArgs += "-opt-in=kotlin.ExperimentalUnsignedTypes" - jvmTarget = "17" + jvmTarget = "11" } }