pact-foundation / pact-jvm

JVM version of Pact. Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.
https://docs.pact.io
Apache License 2.0
1.08k stars 479 forks source link

pact-jvm subprojects not compiling in eclipse #970

Open jstandard opened 5 years ago

jstandard commented 5 years ago

Hello,

Four subprojects in pact-jvm (pact-model, pact-jvm-pact-broker, pact-jvm-support, and pact-publish) will not compile when imported into eclipse. I'm using the latest version of Spring Tool Suite 4 and used File->Import->Gradle->Existing Gradle Project.

It seems like a class path issue based on the gradle configuration because everything builds fine from the command line.

I looked at the build.gradle file and settings.gradle file. I noticed the four subprojects that will not build are all listed as independent includes in settings.gradle. Seems like they may need reference other projects in their classpath. But I'm unclear on how to achieve this.

Any ideas?

Regards, John

uglyog commented 5 years ago

Eclipse is not processing the Gradle project correctly. It works fine with IntelliJ IDEA. Maybe raise an issue with the Eclipse project?