Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eliminate springBootTomcatVersion property #899

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,8 @@ slf4jLog4jApiVersion=2.0.13
# This is a dependency for HTSJDK. Force version for CVE-2023-43642
snappyJavaVersion=1.1.10.7

# Also, update apacheTomcatVersion above to match Spring Boot's Tomcat dependency version
springBootVersion=3.3.4
# This usually matches the Tomcat version dictated by springBootVersion
# Also, keep this in sync with apacheTomcatVersion above
springBootTomcatVersion=10.1.30
# This usually matches the Spring Framework version dictated by springBootVersion
springVersion=6.1.13

Expand Down
2 changes: 1 addition & 1 deletion server/bootstrap/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ sourceSets {

dependencies
{
def tomcatVersion = project.springBootTomcatVersion
def tomcatVersion = project.apacheTomcatVersion

implementation "org.apache.tomcat:tomcat-api:${tomcatVersion}"
implementation "org.apache.tomcat:tomcat-catalina:${tomcatVersion}"
Expand Down
23 changes: 12 additions & 11 deletions server/embedded/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,36 +48,37 @@ dependencies {
}
}

// Allows forcing a Tomcat version that differs from spring-boot's version (e.g., to address CVEs or test a release candidate)
// Allows forcing a Tomcat version that differs from spring-boot's version (e.g., to address CVEs or regressions,
// or to test a Tomcat release candidate)
implementation('org.apache.tomcat.embed:tomcat-embed-core') {
version {
strictly "${springBootTomcatVersion}"
strictly "${apacheTomcatVersion}"
}
}
implementation('org.apache.tomcat.embed:tomcat-embed-el') {
version {
strictly "${springBootTomcatVersion}"
strictly "${apacheTomcatVersion}"
}
}
implementation('org.apache.tomcat.embed:tomcat-embed-websocket') {
version {
strictly "${springBootTomcatVersion}"
strictly "${apacheTomcatVersion}"
}
}
implementation('org.apache.tomcat:tomcat-annotations-api') {
version {
strictly "${springBootTomcatVersion}"
strictly "${apacheTomcatVersion}"
}
}
implementation('org.apache.tomcat:tomcat-jsp-api') {
version {
strictly "${springBootTomcatVersion}"
strictly "${apacheTomcatVersion}"
}
}

runtimeOnly "org.apache.tomcat.embed:tomcat-embed-jasper:${springBootTomcatVersion}"
runtimeOnly "org.apache.tomcat.embed:tomcat-embed-jasper:${apacheTomcatVersion}"
runtimeOnly group: "com.sun.mail", name: "jakarta.mail", version: "${javaMailVersion}"
runtimeOnly group: "org.apache.tomcat", name: "tomcat-dbcp", version: "${springBootTomcatVersion}"
runtimeOnly group: "org.apache.tomcat", name: "tomcat-dbcp", version: "${apacheTomcatVersion}"
runtimeOnly "org.postgresql:postgresql:${postgresqlDriverVersion}"
runtimeOnly "org.apache.logging.log4j:log4j-slf4j2-impl:${log4j2Version}"
implementation "commons-io:commons-io:${commonsIoVersion}"
Expand All @@ -93,7 +94,7 @@ project.tasks.register(
{ CheckForVersionConflicts task ->
task.group = GroupNames.BUILD
task.description = "Check for conflicts in version numbers of jar file and files already in the build directory ${ServerDeployExtension.getEmbeddedServerDeployDirectory(project)}. " +
"Default action on detecting a conflict is to fail. Use -PversionConflictAction=[delete|fail|warn] to change this behavior. The value 'delete' will cause the " +
"Default action on detecting a conflict is to fail. Use -PversionConflictAction=[delete|fail|warn] to change this behavior. The value 'delete' will cause the " +
"conflicting version(s) in the ${ServerDeployExtension.getEmbeddedServerDeployDirectory(project)} directory to be removed."
task.directory = new File(ServerDeployExtension.getEmbeddedServerDeployDirectory(project))
task.extension = "jar"
Expand Down Expand Up @@ -133,8 +134,8 @@ project.artifacts {
}

// The primary artifact from this build should be the jar produced from the bootJar task as that contains
// the SpringBoot classes. This default jar task produces a jar file containing only the classes from src,
// which no one really needs. If produced, this is the jar file that will be used in distributions, making
// the SpringBoot classes. This default jar task produces a jar file containing only the classes from src,
// which no one really needs. If produced, this is the jar file that will be used in distributions, making
// them not really embedding anything.
jar {
onlyIf { false }
Expand Down