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-provider-sbt not getting compiled/installed #865

Open sathishceg opened 5 years ago

sathishceg commented 5 years ago

Hi i am trying to install the pact-jvm-provider-sbt plugin in my java play framework application. After adding the below line in plugins.sbt

addSbtPlugin("au.com.dius" %% "pact-jvm-provider-sbt" % "3.5.12")

when compiling i am getting not found error like below:

sbt.ResolveException: unresolved dependency: au.com.dius#pact-jvm-provider-sbt;3.5.12: not found

can anyone please help me in using the pact sbt plugin for java play framework.

sathishceg commented 5 years ago

@uglyog can you please help me here...

uglyog commented 5 years ago

I haven't been publishing the SBT plugin for a number of reasons.

  1. The plugin is built for SBT 0.13 which requires Scala 2.11, Pact-JVM 3.5+ is built on Scala 2.12
  2. There is a Pact implementation for Scala (https://github.com/ITV/scala-pact)
  3. SBT artefacts do not conform to Maven artefact name convention. They need to have the SBT version in the artefact name. That is why I think you can't use the 3.5.12 version. It is for SBT 1.0.

I will look to start publishing the plugin again now that SBT 1.0+ uses Scala 2.12, probably for Pact-JVM 4.0