JDK: upgrade JDK from 11 to 17

master
cfig 3 months ago
parent 35c7fc4759
commit 13c8a937b5
No known key found for this signature in database
GPG Key ID: B104C307F0FDABB7

@ -5,7 +5,7 @@
A tool for reverse engineering Android ROM images. A tool for reverse engineering Android ROM images.
## Requirements ## Requirements
Make sure you have [JDK11+](https://www.oracle.com/java/technologies/downloads/#java17) and [Python3](https://www.python.org/downloads/). Make sure you have [JDK17+](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 android-sdk-libsparse-utils erofs-utils` * 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 android-sdk-libsparse-utils erofs-utils`

@ -25,8 +25,8 @@ dependencies {
} }
java { java {
sourceCompatibility = JavaVersion.VERSION_11 sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_17
} }
tasks { tasks {

@ -21,6 +21,6 @@ repositories {
} }
java { java {
sourceCompatibility = JavaVersion.VERSION_11 sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_17
} }

@ -58,8 +58,8 @@ application {
} }
java { java {
sourceCompatibility = JavaVersion.VERSION_11 sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_17
} }
tasks.withType<KotlinCompile>().configureEach { tasks.withType<KotlinCompile>().configureEach {
@ -68,7 +68,7 @@ tasks.withType<KotlinCompile>().configureEach {
"-opt-in=kotlin.RequiresOptIn", "-opt-in=kotlin.RequiresOptIn",
"-opt-in=kotlin.ExperimentalUnsignedTypes" "-opt-in=kotlin.ExperimentalUnsignedTypes"
) )
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11) jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17)
} }
} }

@ -54,8 +54,8 @@ dependencies {
} }
java { java {
sourceCompatibility = JavaVersion.VERSION_11 sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_17
} }
tasks.withType<KotlinCompile>().configureEach { tasks.withType<KotlinCompile>().configureEach {
@ -64,7 +64,7 @@ tasks.withType<KotlinCompile>().configureEach {
"-opt-in=kotlin.RequiresOptIn", "-opt-in=kotlin.RequiresOptIn",
"-opt-in=kotlin.ExperimentalUnsignedTypes" "-opt-in=kotlin.ExperimentalUnsignedTypes"
) )
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11) jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17)
} }
} }

@ -38,8 +38,8 @@ dependencies {
} }
java { java {
sourceCompatibility = JavaVersion.VERSION_11 sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_17
} }
tasks.withType<KotlinCompile>().configureEach { tasks.withType<KotlinCompile>().configureEach {
@ -48,7 +48,7 @@ tasks.withType<KotlinCompile>().configureEach {
"-opt-in=kotlin.RequiresOptIn", "-opt-in=kotlin.RequiresOptIn",
"-opt-in=kotlin.ExperimentalUnsignedTypes" "-opt-in=kotlin.ExperimentalUnsignedTypes"
) )
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11) jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17)
} }
} }

Loading…
Cancel
Save