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

chore(dependency): add explicit dependency of jackson-module-jaxb-annotations while upgrading spring boot 2.6.x #1206

Merged
merged 2 commits into from
Dec 20, 2023

Conversation

j-sandy
Copy link
Contributor

@j-sandy j-sandy commented Dec 20, 2023

While upgrading spring boot 2.6.15, encounter below errors in igor-web module during build:

> Task :igor-web:compileGroovy

startup failed:
/igor/igor-web/src/main/groovy/com/netflix/spinnaker/igor/config/JenkinsConfig.groovy: 22: unable to resolve class com.fasterxml.jackson.module.jaxb.JaxbAnnotationModule
 @ line 22, column 1.
   import com.fasterxml.jackson.module.jaxb.JaxbAnnotationModule
   ^

1 error

> Task :igor-web:compileGroovy FAILED

To fix this issue, adding explicit dependency of jackson-module-jaxb-annotations in igor-web.gradle. Since jackson-module-jaxb-annotations is a transitive dependency of spring boot both 2.5.x and 2.6.x, pinning the dependency is not required.

…otations while upgrading spring boot 2.6.x

While upgrading spring boot 2.6.15, encounter below errors in igor-web module during build:
```
> Task :igor-web:compileGroovy

startup failed:
/igor/igor-web/src/main/groovy/com/netflix/spinnaker/igor/config/JenkinsConfig.groovy: 22: unable to resolve class com.fasterxml.jackson.module.jaxb.JaxbAnnotationModule
 @ line 22, column 1.
   import com.fasterxml.jackson.module.jaxb.JaxbAnnotationModule
   ^

1 error

> Task :igor-web:compileGroovy FAILED
```

To fix these issues, adding explicit dependency of jackson-module-jaxb-annotations in igor-web.gradle. Since jackson-module-jaxb-annotations is a transitive dependency of [spring boot](https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-dependencies/2.6.15/spring-boot-dependencies-2.6.15.pom) both 2.5.x and 2.6.x, pinning the dependency is not required.
@dbyron-sf dbyron-sf added the ready to merge Approved and ready for merge label Dec 20, 2023
@mergify mergify bot added the auto merged label Dec 20, 2023
@mergify mergify bot merged commit 6d470ea into spinnaker:master Dec 20, 2023
4 checks passed
@j-sandy j-sandy deleted the jackson-module-jaxb-annotations-dep branch December 21, 2023 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants