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

RuntimeException in spring-boot-2.5.1 is necessary to force hibernate-validator downgrade #50

Closed
sbilello opened this issue Aug 5, 2021 · 1 comment

Comments

@sbilello
Copy link

sbilello commented Aug 5, 2021

If I use this version:

	implementation 'com.graphql-java:graphql-java-extended-validation:16.0.0'

I had to add to my build.gradle

configurations.all {
	resolutionStrategy {
		force 'org.hibernate.validator:hibernate-validator:6.1.6.Final'
	}
}

to avoid a NoSuchMethodError because spring-boot-2.5.1 brings hibernate-validator:6.2.0.Final

java.lang.NoSuchMethodError: 'void org.hibernate.validator.internal.engine.MessageInterpolatorContext.<init>

@WtfJoke
Copy link

WtfJoke commented Aug 11, 2021

Had the same problem. I solved it by using:
gradle kotlin dsl
extra["hibernate-validator.version"] = "6.1.6.Final"

or in gradle:
ext['hibernate-validator.version'] = '6.1.6.Final'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants