Skip to content

How to integrate specmatic with java 11 and spring boot 2.2.6 #1493

Discussion options

You must be logged in to vote

hello @prateekkarmakar , thanks for reaching out.

Specmatic 2.x onwards the minimum Java version required is 17. And that is why you are seeing this error, as you have rightly pointed out.

Since your project is in Java 11, the recommended approach here will be run Contract Test externally. By which I mean, instead of adding Specmatic as a library dependency in your project, you can run Specmatic contract test independently from using the Specmatic JAR executable, NPM module or Docker image. This way Specmatic is only interacting with your application over HTTP protocol and so Java versions will not matter.

You can follow Java JAR, NPM, Docker, etc. related documentation in our getting sta…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@prateekkarmakar
Comment options

@harikrishnan83
Comment options

Answer selected by harikrishnan83
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
2 participants