Skip to content

Commit

Permalink
chore(dependencies): Upgrade Spring Boot to 2.5.14
Browse files Browse the repository at this point in the history
Spring boot 2.5.x brings groovy 3.x as its transitive dependency.
https://docs.spring.io/spring-boot/docs/2.5.14/reference/html/dependency-versions.html#appendix.dependency-versions

Currently spinnaker services use gradle 6.x, that does not support groovy 3.x.
https://docs.gradle.org/6.8.1/userguide/compatibility.html

Restricting groovy to 2.5.x using the code snippet suggested below, till upgrade of gradle to 7.x.
https://docs.gradle.org/current/userguide/resolution_rules.html#sec:denying_version
  • Loading branch information
j-sandy committed Mar 30, 2023
1 parent 7e6e0d4 commit 897c8e6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,12 @@ subprojects {
testRuntimeOnly("org.junit.vintage:junit-vintage-engine")
}
}
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
if (details.requested.group == 'org.codehaus.groovy') {
details.useVersion '2.5.15'
details.because 'Currently using gradle 6.x, upgrading springboot 2.5.x brings groovy 3.x, which is not supported by gradle 6.x. Upgrading to gradle 7.x will remove this constraint'
}
}
}
}
2 changes: 1 addition & 1 deletion spinnaker-dependencies/spinnaker-dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ext {
spectator : "1.0.6",
spek : "1.1.5",
spek2 : "2.0.9",
springBoot : "2.4.13",
springBoot : "2.5.14",
springCloud : "2020.0.6",
springfoxSwagger : "2.9.2",
swagger : "1.5.20", //this should stay in sync with what springfoxSwagger expects
Expand Down

0 comments on commit 897c8e6

Please sign in to comment.