mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-05-02 12:03:41 +01:00
417354da8a
Prior to this commit, the generated POMs for Spring Framework modules would contain unneeded/harmful information from the Spring Framework build: 1. The BOM imports applied to each module by the dependency management plugin, for example for Netty or Reactor Netty. Spring should not export that opinion to its POMs. 2. The exclusion of "org.slf4:jcl-over-slf4j" from *all* dependencies, which made the POMs much larger than necessary and suggested to developers that they should exclude it as well when using all those listed dependencies. In fact, only Apache Tiles currently brings that transitively. This commit removes that information from the POMs. The dependencyManagement Gradle plugin is disabled for POM generation and we manually resolve the dependency versions during the generation phase. The Gradle build is streamlined to exclude "org.slf4:jcl-over-slf4j" only when necessary. Issue: SPR-16893
43 lines
1.8 KiB
Groovy
43 lines
1.8 KiB
Groovy
description = "Spring WebSocket"
|
|
|
|
dependencyManagement {
|
|
imports {
|
|
mavenBom "io.projectreactor:reactor-bom:${reactorVersion}"
|
|
mavenBom "io.netty:netty-bom:${nettyVersion}"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile(project(":spring-context"))
|
|
compile(project(":spring-core"))
|
|
compile(project(":spring-web"))
|
|
optional(project(":spring-messaging"))
|
|
optional(project(":spring-webmvc"))
|
|
optional("javax.servlet:javax.servlet-api:4.0.1")
|
|
optional("javax.websocket:javax.websocket-api:1.1")
|
|
optional("org.apache.tomcat:tomcat-websocket:${tomcatVersion}") {
|
|
exclude group: "org.apache.tomcat", module: "tomcat-websocket-api"
|
|
exclude group: "org.apache.tomcat", module: "tomcat-servlet-api"
|
|
}
|
|
optional("org.glassfish.tyrus:tyrus-container-servlet:1.13.1")
|
|
optional("org.eclipse.jetty:jetty-webapp:${jettyVersion}") {
|
|
exclude group: "javax.servlet", module: "javax.servlet"
|
|
}
|
|
optional("org.eclipse.jetty.websocket:websocket-server:${jettyVersion}") {
|
|
exclude group: "javax.servlet", module: "javax.servlet"
|
|
}
|
|
optional("org.eclipse.jetty.websocket:websocket-client:${jettyVersion}")
|
|
optional("org.eclipse.jetty:jetty-client:${jettyVersion}")
|
|
optional("io.undertow:undertow-servlet:${undertowVersion}") {
|
|
exclude group: "org.jboss.spec.javax.servlet", module: "jboss-servlet-api_3.1_spec"
|
|
exclude group: "org.jboss.spec.javax.annotation", module: "jboss-annotations-api_1.2_spec"
|
|
}
|
|
optional("io.undertow:undertow-websockets-jsr:${undertowVersion}") {
|
|
exclude group: "org.jboss.spec.javax.websocket", module: "jboss-websocket-api_1.1_spec"
|
|
}
|
|
optional("com.fasterxml.jackson.core:jackson-databind:${jackson2Version}")
|
|
testCompile("org.apache.tomcat.embed:tomcat-embed-core:${tomcatVersion}")
|
|
testCompile("org.apache.tomcat.embed:tomcat-embed-websocket:${tomcatVersion}")
|
|
testCompile("io.projectreactor.netty:reactor-netty")
|
|
}
|