-
Notifications
You must be signed in to change notification settings - Fork 10
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
[risk=low][no ticket] Let Spring handle its own dependencies (and partially upgrade) #9049
base: main
Are you sure you want to change the base?
Conversation
// 1.5.7+ results in a runtime error: | ||
// Logging system failed to initialize using configuration from 'null' | ||
// java.lang.NoSuchMethodError: 'java.lang.Object ch.qos.logback.classic.LoggerContext.getConfigurationLock()' | ||
LOGBACK_VERSION = '1.5.6' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Spring plugin pulls in a compatible logback automatically. This PR brings it to 1.5.12.
@@ -53,7 +49,9 @@ plugins { | |||
id 'java' | |||
id 'war' | |||
|
|||
id 'io.spring.dependency-management' version '1.0.11.RELEASE' | |||
id 'io.spring.dependency-management' version '1.1.7' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
latest
@@ -435,7 +466,6 @@ dependencies { | |||
// 5.4+ results in a runtime error: | |||
// java.lang.NoSuchMethodError: 'void org.apache.hc.core5.http.impl.io.DefaultHttpRequestWriterFactory.<init>(org.apache.hc.core5.http.config.Http1Config)' | |||
implementation "org.apache.httpcomponents.client5:httpclient5:5.3.1" | |||
implementation "org.springframework.boot:spring-boot-starter-validation:$project.ext.SPRING_BOOT_VERSION" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For most of the Spring dependencies:
- moved them up in the file
- grouped with other Spring packages
- removed version numbers
- removed exclusions (no longer needed)
108b552
to
bdae92f
Compare
Not sure why tests are failing in Circle. They passed for me locally. I was able to upgrade these packages manually anyway: #9051 |
Use the Spring dependency management plugin instead of hardcoding. This allows us to stop hard-coding version numbers in many locations.
Also upgrade Spring, Spring-Boot, and Spring-Security to the latest 6.1.x, 3.3.x, and 6.3.x respectively. A full upgrade would be to 6.2, 3.4, and 6.4, but this would be nontrivial.
Tested locally by running Local UI and API.
PR checklist
[risk=no|low|moderate|severe]
in the PR title as outlined in CONTRIBUTING.md.