Skip to content

Commit

Permalink
chore: update gradle and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
skylot committed Dec 4, 2023
1 parent e06e6bd commit 2de91f9
Show file tree
Hide file tree
Showing 17 changed files with 37 additions and 35 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions buildSrc/src/main/kotlin/jadx-java.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -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
Expand Down
14 changes: 7 additions & 7 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,15 @@ 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
case $MAX_FD in #(
'' | 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
Expand Down Expand Up @@ -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" \
Expand Down
4 changes: 2 additions & 2 deletions jadx-cli/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions jadx-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down
10 changes: 5 additions & 5 deletions jadx-gui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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)
Expand Down
8 changes: 5 additions & 3 deletions jadx-plugins/jadx-dex-input/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
2 changes: 1 addition & 1 deletion jadx-plugins/jadx-java-convert/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
2 changes: 1 addition & 1 deletion jadx-plugins/jadx-kotlin-metadata/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
}
2 changes: 1 addition & 1 deletion jadx-plugins/jadx-rename-mappings/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down
2 changes: 1 addition & 1 deletion jadx-plugins/jadx-script/examples/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down
2 changes: 1 addition & 1 deletion jadx-plugins/jadx-script/jadx-script-ide/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down
4 changes: 2 additions & 2 deletions jadx-plugins/jadx-smali-input/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}

0 comments on commit 2de91f9

Please sign in to comment.