-
Notifications
You must be signed in to change notification settings - Fork 486
Closed
Description
Problem:
got an exception in Jenkins which is using gitlab4j-api in it's gitlab-source-plugin
java.lang.NoSuchFieldError: Class com.fasterxml.jackson.databind.PropertyNamingStrategy does not have member field 'com.fasterxml.jackson.databind.PropertyNamingStrategy SNAKE_CASE'
Analysis
I think the root cause lies in this project since it has com.fasterxml.jackson.core:jackson-databind as dependency. gitlab4j-api uses PropertyNamingStrategy.SNAKE_CASE in
objectMapper.setPropertyNamingStrategy(PropertyNamingStrategies.SNAKE_CASE); |
api 'com.fasterxml.jackson.core:jackson-databind:2.18.0' |
Suggested Resolution
- downgrade version of jackson-databind to 2.10 since it is the current stable 2.x version
- remove usage of PropertyNaimingStrategy.SNAKE_CASE
Thanks!
Mrls94, quentin9696, maxime-michel, fgrilli and ischenk
Metadata
Metadata
Assignees
Labels
No labels