diff --git a/build.gradle.kts b/build.gradle.kts index 263b84fe50f..9a0661355f7 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -6,9 +6,9 @@ import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform import java.util.Locale plugins { - id("com.github.ben-manes.versions") version "0.49.0" + id("com.github.ben-manes.versions") version "0.50.0" id("se.patrikerdes.use-latest-versions") version "0.2.18" - id("com.diffplug.spotless") version "6.22.0" + id("com.diffplug.spotless") version "6.23.3" } val jadxVersion by extra { System.getenv("JADX_VERSION") ?: "dev" } diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts index 54a381a2d8f..8d274f09d10 100644 --- a/buildSrc/build.gradle.kts +++ b/buildSrc/build.gradle.kts @@ -3,7 +3,7 @@ plugins { } dependencies { - implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.20") + implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.21") } repositories { diff --git a/buildSrc/src/main/kotlin/jadx-java.gradle.kts b/buildSrc/src/main/kotlin/jadx-java.gradle.kts index b418672a8d8..13576338d60 100644 --- a/buildSrc/src/main/kotlin/jadx-java.gradle.kts +++ b/buildSrc/src/main/kotlin/jadx-java.gradle.kts @@ -14,9 +14,9 @@ dependencies { implementation("org.slf4j:slf4j-api:2.0.9") compileOnly("org.jetbrains:annotations:24.1.0") - testImplementation("ch.qos.logback:logback-classic:1.4.11") + testImplementation("ch.qos.logback:logback-classic:1.4.14") testImplementation("org.hamcrest:hamcrest-library:2.2") - testImplementation("org.mockito:mockito-core:5.7.0") + testImplementation("org.mockito:mockito-core:5.8.0") testImplementation("org.assertj:assertj-core:3.24.2") testImplementation("org.junit.jupiter:junit-jupiter:5.10.1") diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 46671acb6e1..db8c3baafe3 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,7 +1,7 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionSha256Sum=3e1af3ae886920c3ac87f7a91f816c0c7c436f276a6eefdb3da152100fef72ae -distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip +distributionSha256Sum=9d926787066a081739e8200858338b4a69e837c3a821a33aca9db09dd4a41026 +distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/gradlew b/gradlew index 0adc8e1a532..1aa94a42690 100755 --- a/gradlew +++ b/gradlew @@ -145,7 +145,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then case $MAX_FD in #( max*) # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. - # shellcheck disable=SC3045 + # shellcheck disable=SC2039,SC3045 MAX_FD=$( ulimit -H -n ) || warn "Could not query maximum file descriptor limit" esac @@ -153,7 +153,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then '' | soft) :;; #( *) # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. - # shellcheck disable=SC3045 + # shellcheck disable=SC2039,SC3045 ulimit -n "$MAX_FD" || warn "Could not set maximum file descriptor limit to $MAX_FD" esac @@ -202,11 +202,11 @@ fi # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' -# Collect all arguments for the java command; -# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of -# shell script including quotes and variable substitutions, so put them in -# double quotes to make sure that they get re-expanded; and -# * put everything else in single quotes, so that it's not re-expanded. +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. set -- \ "-Dorg.gradle.appname=$APP_BASE_NAME" \ diff --git a/jadx-cli/build.gradle.kts b/jadx-cli/build.gradle.kts index 0c9dd1a53aa..b62378a49c2 100644 --- a/jadx-cli/build.gradle.kts +++ b/jadx-cli/build.gradle.kts @@ -18,8 +18,8 @@ dependencies { runtimeOnly(project(":jadx-plugins:jadx-kotlin-metadata")) runtimeOnly(project(":jadx-plugins:jadx-script:jadx-script-plugin")) - implementation("com.beust:jcommander:1.82") - implementation("ch.qos.logback:logback-classic:1.4.11") + implementation("org.jcommander:jcommander:1.83") + implementation("ch.qos.logback:logback-classic:1.4.14") } application { diff --git a/jadx-core/build.gradle.kts b/jadx-core/build.gradle.kts index b15ed7275e4..e8b16fdf3f2 100644 --- a/jadx-core/build.gradle.kts +++ b/jadx-core/build.gradle.kts @@ -8,10 +8,10 @@ dependencies { implementation("com.google.code.gson:gson:2.10.1") // TODO: move resources decoding to separate plugin module - implementation("com.android.tools.build:aapt2-proto:8.1.3-10154469") + implementation("com.android.tools.build:aapt2-proto:8.2.0-10154469") implementation("com.google.protobuf:protobuf-java:3.25.1") // forcing latest version - testImplementation("org.apache.commons:commons-lang3:3.13.0") + testImplementation("org.apache.commons:commons-lang3:3.14.0") testImplementation(project(":jadx-plugins:jadx-dex-input")) testRuntimeOnly(project(":jadx-plugins:jadx-smali-input")) diff --git a/jadx-gui/build.gradle.kts b/jadx-gui/build.gradle.kts index a7378e3797e..5e6ea78d3cb 100644 --- a/jadx-gui/build.gradle.kts +++ b/jadx-gui/build.gradle.kts @@ -24,8 +24,8 @@ dependencies { implementation("com.pinterest.ktlint:ktlint-rule-engine:1.0.1") implementation("com.pinterest.ktlint:ktlint-ruleset-standard:1.0.1") - implementation("com.beust:jcommander:1.82") - implementation("ch.qos.logback:logback-classic:1.4.11") + implementation("org.jcommander:jcommander:1.83") + implementation("ch.qos.logback:logback-classic:1.4.14") implementation("dev.dirs:directories:26") implementation("com.fifesoft:rsyntaxtextarea:3.3.4") @@ -37,13 +37,13 @@ dependencies { implementation("com.formdev:flatlaf-extras:3.2.5") implementation("com.google.code.gson:gson:2.10.1") - implementation("org.apache.commons:commons-lang3:3.13.0") + implementation("org.apache.commons:commons-lang3:3.14.0") implementation("org.apache.commons:commons-text:1.11.0") - implementation("commons-io:commons-io:2.15.0") + implementation("commons-io:commons-io:2.15.1") implementation("io.reactivex.rxjava2:rxjava:2.2.21") implementation("com.github.akarnokd:rxjava2-swing:0.3.7") - implementation("com.android.tools.build:apksig:8.1.3") + implementation("com.android.tools.build:apksig:8.2.0") implementation("io.github.skylot:jdwp:2.0.0") testImplementation(project(":jadx-core").dependencyProject.sourceSets.getByName("test").output) diff --git a/jadx-plugins/jadx-dex-input/build.gradle.kts b/jadx-plugins/jadx-dex-input/build.gradle.kts index 8a2286eadb7..6803e6c289b 100644 --- a/jadx-plugins/jadx-dex-input/build.gradle.kts +++ b/jadx-plugins/jadx-dex-input/build.gradle.kts @@ -6,15 +6,17 @@ dependencies { api(project(":jadx-core")) // TODO: finish own smali printer - implementation("org.smali:baksmali:2.5.2") - // force latest version for smali + implementation("org.smali:baksmali:2.5.2") { + exclude(group = "com.beust", module = "jcommander") // exclude old jcommander namespace + } + // force the latest version for smali constraints { implementation("com.google.guava:guava:30.1.1-jre") - implementation("com.beust:jcommander:1.81") } // compile smali files in tests testImplementation("org.smali:smali:2.5.2") { exclude(group = "junit", module = "junit") // ignore junit 4 transitive dependency + exclude(group = "com.beust", module = "jcommander") // exclude old jcommander namespace } } diff --git a/jadx-plugins/jadx-java-convert/build.gradle.kts b/jadx-plugins/jadx-java-convert/build.gradle.kts index 114c1297b15..2a6932dbcdc 100644 --- a/jadx-plugins/jadx-java-convert/build.gradle.kts +++ b/jadx-plugins/jadx-java-convert/build.gradle.kts @@ -7,7 +7,7 @@ dependencies { implementation(project(":jadx-plugins:jadx-dex-input")) implementation("com.jakewharton.android.repackaged:dalvik-dx:11.0.0_r3") - implementation("com.android.tools:r8:8.1.56") + implementation("com.android.tools:r8:8.1.72") implementation("org.ow2.asm:asm:9.6") } diff --git a/jadx-plugins/jadx-kotlin-metadata/build.gradle.kts b/jadx-plugins/jadx-kotlin-metadata/build.gradle.kts index 5c5533858d5..8175add2e99 100644 --- a/jadx-plugins/jadx-kotlin-metadata/build.gradle.kts +++ b/jadx-plugins/jadx-kotlin-metadata/build.gradle.kts @@ -9,7 +9,7 @@ dependencies { implementation("org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.7.0") testImplementation(project(":jadx-core").dependencyProject.sourceSets.test.get().output) - testImplementation("org.apache.commons:commons-lang3:3.13.0") + testImplementation("org.apache.commons:commons-lang3:3.14.0") testRuntimeOnly(project(":jadx-plugins:jadx-smali-input")) } diff --git a/jadx-plugins/jadx-rename-mappings/build.gradle.kts b/jadx-plugins/jadx-rename-mappings/build.gradle.kts index 2e822eb262d..64a2bbe0b65 100644 --- a/jadx-plugins/jadx-rename-mappings/build.gradle.kts +++ b/jadx-plugins/jadx-rename-mappings/build.gradle.kts @@ -6,7 +6,7 @@ plugins { dependencies { api(project(":jadx-core")) - api("net.fabricmc:mapping-io:0.5.0") { + api("net.fabricmc:mapping-io:0.5.1") { exclude("org.ow2.asm:asm") exclude("net.fabricmc:tiny-remapper") } diff --git a/jadx-plugins/jadx-script/examples/build.gradle.kts b/jadx-plugins/jadx-script/examples/build.gradle.kts index 70807ade856..acd20396264 100644 --- a/jadx-plugins/jadx-script/examples/build.gradle.kts +++ b/jadx-plugins/jadx-script/examples/build.gradle.kts @@ -8,7 +8,7 @@ dependencies { implementation(kotlin("stdlib-common")) implementation(kotlin("script-runtime")) - implementation("io.github.oshai:kotlin-logging-jvm:5.1.0") + implementation("io.github.oshai:kotlin-logging-jvm:5.1.1") // script context support in IDE is poor, use stubs and manual imports for now // kotlinScriptDef(project(":jadx-plugins:jadx-script:jadx-script-runtime")) diff --git a/jadx-plugins/jadx-script/jadx-script-ide/build.gradle.kts b/jadx-plugins/jadx-script/jadx-script-ide/build.gradle.kts index c8d879573f9..1bdd3707d91 100644 --- a/jadx-plugins/jadx-script/jadx-script-ide/build.gradle.kts +++ b/jadx-plugins/jadx-script/jadx-script-ide/build.gradle.kts @@ -12,5 +12,5 @@ dependencies { implementation(kotlin("scripting-ide-services")) implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3") - implementation("io.github.oshai:kotlin-logging-jvm:5.1.0") + implementation("io.github.oshai:kotlin-logging-jvm:5.1.1") } diff --git a/jadx-plugins/jadx-script/jadx-script-plugin/build.gradle.kts b/jadx-plugins/jadx-script/jadx-script-plugin/build.gradle.kts index 72cf23746be..acc611cd10c 100644 --- a/jadx-plugins/jadx-script/jadx-script-plugin/build.gradle.kts +++ b/jadx-plugins/jadx-script/jadx-script-plugin/build.gradle.kts @@ -10,7 +10,7 @@ dependencies { implementation(kotlin("scripting-jvm")) implementation(kotlin("scripting-jvm-host")) - implementation("io.github.oshai:kotlin-logging-jvm:5.1.0") + implementation("io.github.oshai:kotlin-logging-jvm:5.1.1") // path for scripts cache implementation("dev.dirs:directories:26") diff --git a/jadx-plugins/jadx-script/jadx-script-runtime/build.gradle.kts b/jadx-plugins/jadx-script/jadx-script-runtime/build.gradle.kts index 0a6da3e9237..61ff2ee5b92 100644 --- a/jadx-plugins/jadx-script/jadx-script-runtime/build.gradle.kts +++ b/jadx-plugins/jadx-script/jadx-script-runtime/build.gradle.kts @@ -15,7 +15,7 @@ dependencies { implementation(kotlin("scripting-dependencies-maven")) implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3") - implementation("io.github.oshai:kotlin-logging-jvm:5.1.0") + implementation("io.github.oshai:kotlin-logging-jvm:5.1.1") runtimeOnly(project(":jadx-plugins:jadx-dex-input")) runtimeOnly(project(":jadx-plugins:jadx-smali-input")) diff --git a/jadx-plugins/jadx-smali-input/build.gradle.kts b/jadx-plugins/jadx-smali-input/build.gradle.kts index d7419a66f04..c441e0a8cf3 100644 --- a/jadx-plugins/jadx-smali-input/build.gradle.kts +++ b/jadx-plugins/jadx-smali-input/build.gradle.kts @@ -9,10 +9,10 @@ dependencies { implementation("org.smali:smali:2.5.2") { exclude(group = "junit", module = "junit") // ignore junit 4 transitive dependency + exclude(group = "com.beust", module = "jcommander") // exclude old jcommander namespace } - // force latest version for smali + // force the latest version for smali constraints { implementation("com.google.guava:guava:30.1.1-jre") - implementation("com.beust:jcommander:1.81") } }