From ba978d48fe645b1d49560e88cf5e57f6a78de86b Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Thu, 8 May 2025 14:21:57 +0100 Subject: [PATCH] Prune dependencies of spring-boot-autoconfigure-all --- .../build.gradle | 178 ++---------------- 1 file changed, 11 insertions(+), 167 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure-all/build.gradle b/spring-boot-project/spring-boot-autoconfigure-all/build.gradle index 9434270663..1c35f05a78 100644 --- a/spring-boot-project/spring-boot-autoconfigure-all/build.gradle +++ b/spring-boot-project/spring-boot-autoconfigure-all/build.gradle @@ -8,183 +8,27 @@ plugins { description = "Spring Boot AutoConfigure All" -configurations.all { - resolutionStrategy.eachDependency { DependencyResolveDetails details -> - if (details.requested.module.group == "org.apache.kafka" && details.requested.module.name == "kafka-server-common") { - details.artifactSelection { - selectArtifact(DependencyArtifact.DEFAULT_TYPE, null, null) - } - } - } -} - dependencies { api(project(":spring-boot-project:spring-boot")) api(project(":spring-boot-project:spring-boot-autoconfigure")) - - optional(project(":spring-boot-project:spring-boot-activemq")) - optional(project(":spring-boot-project:spring-boot-artemis")) - optional(project(":spring-boot-project:spring-boot-data-jpa")) - optional(project(":spring-boot-project:spring-boot-data-mongodb")) - optional(project(":spring-boot-project:spring-boot-data-redis")) - optional(project(":spring-boot-project:spring-boot-data-rest")) - optional(project(":spring-boot-project:spring-boot-flyway")) - optional(project(":spring-boot-project:spring-boot-h2console")) - optional(project(":spring-boot-project:spring-boot-hazelcast")) - optional(project(":spring-boot-project:spring-boot-http-converter")) - optional(project(":spring-boot-project:spring-boot-http-codec")) - optional(project(":spring-boot-project:spring-boot-jackson")) - optional(project(":spring-boot-project:spring-boot-jdbc")) - optional(project(":spring-boot-project:spring-boot-jsonb")) - optional(project(":spring-boot-project:spring-boot-liquibase")) - optional(project(":spring-boot-project:spring-boot-mongodb")) - optional(project(":spring-boot-project:spring-boot-r2dbc")) - optional(project(":spring-boot-project:spring-boot-reactor-netty")) - optional(project(":spring-boot-project:spring-boot-rsocket")) - optional(project(":spring-boot-project:spring-boot-security")) - optional(project(":spring-boot-project:spring-boot-security-oauth2-resource-server")) - optional(project(":spring-boot-project:spring-boot-session")) - optional(project(":spring-boot-project:spring-boot-tomcat")) - optional(project(":spring-boot-project:spring-boot-tx")) - optional(project(":spring-boot-project:spring-boot-validation")) - optional(project(":spring-boot-project:spring-boot-webflux")) - optional(project(":spring-boot-project:spring-boot-webmvc")) - optional("com.fasterxml.jackson.core:jackson-databind") - optional("com.fasterxml.jackson.dataformat:jackson-dataformat-cbor") - optional("com.fasterxml.jackson.dataformat:jackson-dataformat-xml") - optional("com.fasterxml.jackson.datatype:jackson-datatype-jsr310") - optional("com.fasterxml.jackson.module:jackson-module-jakarta-xmlbind-annotations") - optional("com.fasterxml.jackson.module:jackson-module-parameter-names") - optional("com.nimbusds:oauth2-oidc-sdk") - optional("com.oracle.database.jdbc:ojdbc11") - optional("com.oracle.database.jdbc:ucp11") - optional("com.querydsl:querydsl-core") - optional("io.lettuce:lettuce-core") - optional("io.projectreactor.netty:reactor-netty-http") - optional("io.r2dbc:r2dbc-spi") - optional("io.r2dbc:r2dbc-pool") - optional("io.r2dbc:r2dbc-proxy") - optional("io.rsocket:rsocket-core") - optional("io.rsocket:rsocket-transport-netty") - optional("io.undertow:undertow-servlet") - optional("io.undertow:undertow-websockets-jsr") - optional("jakarta.jms:jakarta.jms-api") - optional("jakarta.mail:jakarta.mail-api") - optional("jakarta.json.bind:jakarta.json.bind-api") - optional("jakarta.persistence:jakarta.persistence-api") - optional("jakarta.transaction:jakarta.transaction-api") - optional("jakarta.validation:jakarta.validation-api") - optional("jakarta.websocket:jakarta.websocket-api") - optional("jakarta.ws.rs:jakarta.ws.rs-api") - optional("javax.cache:cache-api") - optional("org.apache.commons:commons-dbcp2") - optional("org.apache.httpcomponents.client5:httpclient5") - optional("org.apache.httpcomponents.core5:httpcore5-reactive") - optional("org.apache.tomcat.embed:tomcat-embed-core") - optional("org.apache.tomcat.embed:tomcat-embed-el") - optional("org.apache.tomcat.embed:tomcat-embed-websocket") - optional("org.apache.tomcat:tomcat-jdbc") - optional("org.apiguardian:apiguardian-api") - optional("org.eclipse.angus:angus-mail") - optional("com.zaxxer:HikariCP") - optional("org.aspectj:aspectjweaver") - optional("org.eclipse.jetty.ee10:jetty-ee10-webapp") - optional("org.eclipse.jetty:jetty-reactive-httpclient") - optional("org.eclipse.jetty.ee10.websocket:jetty-ee10-websocket-jakarta-server") - optional("org.eclipse.jetty.ee10.websocket:jetty-ee10-websocket-jetty-server") - optional("org.glassfish.jersey.containers:jersey-container-servlet-core") - optional("org.glassfish.jersey.containers:jersey-container-servlet") - optional("org.glassfish.jersey.core:jersey-server") - optional("org.glassfish.jersey.ext:jersey-spring6") - optional("org.glassfish.jersey.media:jersey-media-json-jackson") - optional("org.hibernate.orm:hibernate-core") - optional("org.hibernate.orm:hibernate-jcache") - optional("org.hibernate.validator:hibernate-validator") - optional("org.influxdb:influxdb-java") - optional("org.jooq:jooq") - optional("org.liquibase:liquibase-core") { - exclude group: "javax.xml.bind", module: "jaxb-api" - } - optional("org.messaginghub:pooled-jms") { - exclude group: "org.apache.geronimo.specs", module: "geronimo-jms_2.0_spec" - } - optional("org.mongodb:mongodb-driver-reactivestreams") - optional("org.mongodb:mongodb-driver-sync") - optional("org.opensaml:opensaml-core:4.0.1") - optional("org.opensaml:opensaml-saml-api:4.0.1") - optional("org.opensaml:opensaml-saml-impl:4.0.1") - optional("org.springframework:spring-aspects") - optional("org.springframework:spring-jdbc") - optional("org.springframework:spring-jms") - optional("org.springframework:spring-orm") - optional("org.springframework:spring-tx") - optional("org.springframework:spring-web") - optional("org.springframework:spring-websocket") - optional("org.springframework:spring-webflux") + + optional(project(":spring-boot-project:spring-boot-web-server")) + optional("jakarta.servlet:jakarta.servlet-api") optional("org.springframework:spring-webmvc") - optional("org.springframework.data:spring-data-envers") { - exclude group: "javax.activation", module: "javax.activation-api" - exclude group: "javax.persistence", module: "javax.persistence-api" - exclude group: "org.jboss.spec.javax.transaction", module: "jboss-transaction-api_1.2_spec" - } - optional("org.springframework.data:spring-data-rest-webmvc") - optional("org.springframework.data:spring-data-jdbc") - optional("org.springframework.data:spring-data-mongodb") - optional("org.springframework.data:spring-data-r2dbc") - optional("org.springframework.hateoas:spring-hateoas") - optional("org.springframework.security:spring-security-acl") - optional("org.springframework.security:spring-security-config") - optional("org.springframework.security:spring-security-data") - optional("org.springframework.security:spring-security-messaging") - optional("org.springframework.security:spring-security-oauth2-authorization-server") - optional("org.springframework.security:spring-security-oauth2-client") - optional("org.springframework.security:spring-security-oauth2-jose") - optional("org.springframework.security:spring-security-oauth2-resource-server") - optional("org.springframework.security:spring-security-rsocket") - optional("org.springframework.security:spring-security-saml2-service-provider") { - exclude group: "org.opensaml", module: "opensaml-core" - exclude group: "org.opensaml", module: "opensaml-saml-api" - exclude group: "org.opensaml", module: "opensaml-saml-impl" - } - optional("org.springframework.security:spring-security-web") - optional("org.springframework.amqp:spring-rabbit") - optional("org.springframework.amqp:spring-rabbit-stream") - testImplementation(project(":spring-boot-project:spring-boot-freemarker")) - testImplementation(project(":spring-boot-project:spring-boot-gson")) + testImplementation(project(":spring-boot-project:spring-boot-data-redis")) + testImplementation(project(":spring-boot-project:spring-boot-http-converter")) testImplementation(project(":spring-boot-project:spring-boot-jetty")) + testImplementation(project(":spring-boot-project:spring-boot-security")) + testImplementation(project(":spring-boot-project:spring-boot-session-data-redis")) testImplementation(project(":spring-boot-project:spring-boot-test")) + testImplementation(project(":spring-boot-project:spring-boot-tomcat")) testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support")) testImplementation(project(":spring-boot-project:spring-boot-undertow")) - testImplementation(project(":spring-boot-project:spring-boot-mustache")) - testImplementation(project(":spring-boot-project:spring-boot-thymeleaf")) + testImplementation(project(":spring-boot-project:spring-boot-webmvc")) testImplementation(testFixtures(project(":spring-boot-project:spring-boot-web-server"))) - testImplementation(testFixtures(project(":spring-boot-project:spring-boot-autoconfigure"))) - testImplementation("ch.qos.logback:logback-classic") - testImplementation("commons-fileupload:commons-fileupload") - testImplementation("com.github.h-thurow:simple-jndi") - testImplementation("com.ibm.db2:jcc") - testImplementation("com.mysql:mysql-connector-j") - testImplementation("com.squareup.okhttp3:mockwebserver") - testImplementation("com.sun.xml.messaging.saaj:saaj-impl") - testImplementation("io.micrometer:context-propagation") - testImplementation("io.projectreactor:reactor-test") - testImplementation("io.r2dbc:r2dbc-h2") - testImplementation("jakarta.json:jakarta.json-api") - testImplementation("jakarta.xml.ws:jakarta.xml.ws-api") - testImplementation("org.apache.logging.log4j:log4j-to-slf4j") - testImplementation("org.eclipse:yasson") - testImplementation("org.hsqldb:hsqldb") - testImplementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8") - testImplementation("org.junit.jupiter:junit-jupiter") - testImplementation("org.postgresql:postgresql") - testImplementation("org.postgresql:r2dbc-postgresql") - testImplementation("org.springframework.security:spring-security-test") - testImplementation("org.yaml:snakeyaml") - - testRuntimeOnly("jakarta.management.j2ee:jakarta.management.j2ee-api") - testRuntimeOnly("org.flywaydb:flyway-database-hsqldb") - testRuntimeOnly("org.jetbrains.kotlin:kotlin-reflect") + + testRuntimeOnly("org.apache.httpcomponents.client5:httpclient5") } test {