From 44b87f8117ec74e5cc9b0c6636496996b213759a Mon Sep 17 00:00:00 2001 From: Jeanderson Barros Candido <2225536+jeandersonbc@users.noreply.github.com> Date: Tue, 11 Aug 2026 14:18:34 +0200 Subject: [PATCH] chore(dependencies) fix issues raised by dependency:analyze This PR runs cleans up used (but not declared, i.e., transitive) dependencies by explicitly declaring it and removes declared (but not used, i.e., stale) dependencies by removing them. In addition, adds `mvn dependency:analyze -DfailOnWarnings=true` to ensure dependencies are always correct. Junit Platform is a false-negative because it is handled via ServiceLoader. Our surefire version makes it redundant (that's why tests remain running without it) but for safety, we explicitly add it and use the dependency plugin to ignore it from analysis. --- .github/workflows/javaci.yml | 2 ++ pom.xml | 56 ++++++++++++++++++++++++++++++------ 2 files changed, 49 insertions(+), 9 deletions(-) diff --git a/.github/workflows/javaci.yml b/.github/workflows/javaci.yml index da9ebf56b..9f79ac99b 100644 --- a/.github/workflows/javaci.yml +++ b/.github/workflows/javaci.yml @@ -38,6 +38,8 @@ jobs: run: mvn -B checkstyle:check --no-transfer-progress - name: Check Java Formatting run: mvn spotless:check --no-transfer-progress + - name: Check Dependencies + run: mvn dependency:analyze -DfailOnWarning=true --no-transfer-progress java-test: name: Build and Test diff --git a/pom.xml b/pom.xml index 70c687b54..c908fa1f0 100644 --- a/pom.xml +++ b/pom.xml @@ -36,14 +36,14 @@ 2.22.1 + 2.22 2.14.0 1.22.0 - 1.9.0 1.6.16 2.2.52 3.1.0 5.6.2 - + 5.4.3 3.17.0 3.0 @@ -51,6 +51,7 @@ 5.23.0 + 3.11.0 3.15.0 3.5.1 0.8.15 @@ -273,6 +274,20 @@ + + org.apache.maven.plugins + maven-dependency-plugin + ${maven-dependency-plugin-version} + + + + org.junit.jupiter:junit-jupiter-engine + + + @@ -282,6 +297,16 @@ jackson-databind ${com.fasterxml.jackson-version} + + com.fasterxml.jackson.core + jackson-core + ${com.fasterxml.jackson-version} + + + com.fasterxml.jackson.core + jackson-annotations + ${com.fasterxml.jackson-annotations-version} + com.fasterxml.jackson.datatype jackson-datatype-jsr310 @@ -297,11 +322,6 @@ commons-codec ${commons-codec-version} - - io.gsonfire - gson-fire - ${gson-fire-version} - io.swagger swagger-annotations @@ -317,6 +337,11 @@ jakarta.ws.rs-api ${jakarta.ws.rs-api-version} + + org.apache.httpcomponents.core5 + httpcore5 + ${httpcore5-version} + org.apache.httpcomponents.client5 httpclient5 @@ -326,7 +351,7 @@ com.squareup.okio - okio + okio-jvm ${okio-version} test @@ -338,7 +363,20 @@ org.junit.jupiter - junit-jupiter + junit-jupiter-params + ${junit-jupiter-version} + test + + + org.junit.jupiter + junit-jupiter-api + ${junit-jupiter-version} + test + + + + org.junit.jupiter + junit-jupiter-engine ${junit-jupiter-version} test