I’m using Gradle Buildship plugin (1.0.20) with Eclipse (4.6) and Gradle 2.1 (yes, unfortunately I can’t use newer version) and Java 8.
I have a such project structure:
“service-api” has some JARs as compile dependencies.
“service-impl” has: compile project(":service-api")
Also sevice-impl has some JUnit tests. There is no compilation errors in Eclipse in src and tests. But when I go to
Run -> JUnit test
I’m facing with NoClassDefFoundError (about classes that are dependencies from service-api).
But everything is OK from console and from STS plugin.
Could you help me? Any ideas?