As the title says I am upgrading Jest and Elasticsearch. Jest from 2.4.0 to 5.3.2 and Elasticsearch from 2.3.3 to 5.4.2. When I build my specific jar file from Gradle then try to do some testing, it is throwing the NoClassDefFoundError.
The specific message I am receiving is,
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.index.query.BoolQueryBuilder
Checking the jar in a decompiler the specific class "BoolQueryBuilder" class has an "INTERNAL ERROR" message with nothing inside of it but the byte code has information tied to it.
I have tried different jars with the same result. Everything seems to point to some dependency in my gradle file. Are there any main dependencies that would cause class definitions to be lost? Instead of taking shots in the dark I figured I would ask about any giant red flags others have possibly dealt with?