From 687d4985dcd906912641d02a23dd6996142c3765 Mon Sep 17 00:00:00 2001 From: Awambeng Date: Sun, 4 Aug 2024 19:02:13 +0100 Subject: [PATCH] Optimize dependency management by excluding unused transitive dependencies --- datasafe-rest-impl/pom.xml | 149 +++++++++++++++++- .../datasafe-simple-adapter-impl/pom.xml | 41 ++++- pom.xml | 13 +- 3 files changed, 181 insertions(+), 22 deletions(-) diff --git a/datasafe-rest-impl/pom.xml b/datasafe-rest-impl/pom.xml index b521a0026..62336b1af 100644 --- a/datasafe-rest-impl/pom.xml +++ b/datasafe-rest-impl/pom.xml @@ -19,12 +19,12 @@ 3.0.0 2.2.4 1.6.0 - 6.1.2 + 6.3.1 6.1.10 3.0.0 10.1.11 3.0.2 - 2.3.0 + 2.6.0 true @@ -53,6 +53,16 @@ de.adorsys datasafe-storage-impl-s3 ${project.version} + + + com.amazonaws + aws-java-sdk-s3 + + + com.amazonaws + aws-java-sdk-core + + de.adorsys @@ -69,17 +79,67 @@ org.springframework.boot spring-boot-starter-web ${spring-boot.version} + + + org.springframework + spring-web + + + org.springframework + spring-test + + + org.springframework + spring-core + + + org.springframework + spring-beans + + + org.springframework + spring-context + + + org.springframework + spring-webmvc + + + org.apache.tomcat.embed + tomcat-embed-core + + + com.fasterxml.jackson.core + jackson-databind + + org.springframework.boot spring-boot-starter-actuator ${spring-boot.version} + + + org.springframework.boot + spring-boot-actuator-autoconfigure + + org.springframework.boot spring-boot-devtools ${spring-boot.version} runtime + + + org.springframework.boot + spring-boot-autoconfigure + + + org.springframework.boot + spring-boot + + org.springframework.boot @@ -91,6 +151,12 @@ org.springframework.boot spring-boot-starter-validation ${spring-boot.version} + + + jakarta.validation + jakarta.validation-api + + @@ -120,6 +186,24 @@ org.springframework.boot spring-boot-starter-security ${spring-boot.version} + + + org.springframework.security + spring-security-config + + + org.springframework.security + spring-security-web + + + org.springframework.security + spring-security-crypto + + + org.springframework.security + spring-security-core + + de.adorsys @@ -136,11 +220,6 @@ slf4j-api ${slf4j-simple.version} - - org.springframework.boot - spring-boot - ${spring-boot.version} - com.fasterxml.jackson.core jackson-databind @@ -151,6 +230,27 @@ spring-core ${spring.framework.version} + + org.springframework + spring-beans + ${spring.framework.version} + + + org.springframework + spring-context + ${spring.framework.version} + + + org.springframework + spring-webmvc + ${spring.framework.version} + + + org.springframework + spring-web + ${spring.framework.version} + + org.springframework.security spring-security-crypto @@ -196,6 +296,27 @@ jakarta.validation-api ${jakarta.validation-api.version} + + org.springframework.security + spring-security-config + ${spring.framework.security.version} + + + org.springframework.security + spring-security-web + ${spring.framework.security.version} + + + org.springframework.boot + spring-boot + ${spring-boot.version} + + + org.springframework.security + spring-security-core + ${spring.framework.security.version} + + @@ -209,6 +330,14 @@ org.springframework.boot spring-boot-starter-logging + + org.springframework.boot + spring-boot-test-autoconfigure + + + org.springframework.boot + spring-boot-test + @@ -229,6 +358,12 @@ spring-restdocs-mockmvc test ${spring-restdocs.version} + + + org.springframework.restdocs + spring-restdocs-core + + org.assertj diff --git a/datasafe-simple-adapter/datasafe-simple-adapter-impl/pom.xml b/datasafe-simple-adapter/datasafe-simple-adapter-impl/pom.xml index 36d3aaa17..dc8f120e9 100644 --- a/datasafe-simple-adapter/datasafe-simple-adapter-impl/pom.xml +++ b/datasafe-simple-adapter/datasafe-simple-adapter-impl/pom.xml @@ -13,6 +13,7 @@ 1.78.1 + 17.0.0 @@ -33,6 +34,16 @@ datasafe-storage-impl-s3 ${project.version} compile + + + com.amazonaws + aws-java-sdk-s3 + + + com.amazonaws + aws-java-sdk-core + + de.adorsys @@ -70,6 +81,26 @@ guava ${guava.version} + + com.amazonaws + aws-java-sdk-s3 + ${amazon.aws.version} + + + com.amazonaws + aws-java-sdk-core + ${amazon.aws.version} + + + org.testcontainers + testcontainers + + + org.jetbrains + annotations + ${jetbrains.annotations.version} + test + de.adorsys @@ -102,10 +133,12 @@ org.assertj assertj-core test - - - org.testcontainers - testcontainers + + + org.jetbrains + annotations + + diff --git a/pom.xml b/pom.xml index 7236268f2..20e0c388e 100644 --- a/pom.xml +++ b/pom.xml @@ -410,16 +410,6 @@ de.adorsys.keymanagement:api de.adorsys:datasafe-storage-api de.adorsys:datasafe-directory-api - com.amazonaws:aws-java-sdk-s3 - com.amazonaws:aws-java-sdk-core - org.jetbrains:annotations - org.springframework.security:spring-security-config - org.springframework.security:spring-security-web - org.springframework:spring-web - org.springframework.security:spring-security-core - org.springframework:spring-beans - org.springframework:spring-context - org.springframework:spring-webmvc org.slf4j:slf4j-simple @@ -429,7 +419,7 @@ de.adorsys:datasafe-business org.springframework.boot:spring-boot-devtools io.jsonwebtoken:jjwt-impl - io.jsonwebtoken:jjwt-jackson + Optimize dependency management by excluding unused transitive dependencies io.jsonwebtoken:jjwt-jackson com.mysql:mysql-connector-j org.springframework.boot:spring-boot-starter-test jakarta.servlet:jakarta.servlet-api @@ -439,6 +429,7 @@ org.springframework.boot:spring-boot-starter-web org.springframework.boot:spring-boot-starter-actuator org.springframework.boot:spring-boot-configuration-processor + org.springdoc:springdoc-openapi-starter-webmvc-ui org.bouncycastle:bcprov-jdk15on