Pact-jvm: Scala 2.12 version

Created on 26 May 2017  路  9Comments  路  Source: pact-foundation/pact-jvm

Hi, when will there be a release compatible with Scala 2.12?

Regards,
Andrew

Most helpful comment

Scala 2.12 version 3.5.4-rc.0 has been released

All 9 comments

I have the same question.

+1

I have been looking into this, and there is 4 dependencies that need an upgrade to be able to provide Scala 2.12 support as their current version don't have 2.12 support. This is:

I'll be working on PRs to update dependencies for those projects that do have Scala 2.12 support already.

Contrary to what I wrote in my first comment, unfiltered-netty-server does have support for Scala 2.12 since version 0.9.0, and that version is already out. What I missed (and the reason why I didn't find it), is that the project group ID has been renamed to ws.unfiltered. Versions 0.9.0 and 0.9.1 of the project have been released under that new org name.

Scala 2.12 version 3.5.4-rc.0 has been released

It looks like this is not working yet: I am getting following resolution problems

[warn] Note: Unresolved dependencies path:
[warn] au.com.dius:pact-jvm-model:3.5.4-rc.0
[warn] +- au.com.dius:pact-jvm-matchers_2.12:3.5.4-rc.0
[warn] +- au.com.dius:pact-jvm-consumer_2.12:3.5.4-rc.0 (XXXXXX)

So, it looks like jvm-matchers:3.5.4-rc0 depends on pact-jvm-model 3.5.4-rc.0 which does not exist.
A 3.5.4 version of pact-jvm-model does exist.

Ah, yes, au.com.dius:pact-jvm-model:3.5.4 is the correct one.

Are you able to force the jar version, because I'll need to publish a new version to correct the dependency issue.

You can work around it by excluding the pact-jvm-model dependency and explicitly including the correct one in sbt:

libraryDependencies ++= Seq(
  "au.com.dius" %% "pact-jvm-consumer" % "3.5.4-rc.0" exclude("au.com.dius", "pact-jvm-model"),
  "au.com.dius" %% "pact-jvm-model" % "3.5.4"
)

Closing this as master branch is now based on 2.12

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cah-andrew-fitzgerald picture cah-andrew-fitzgerald  路  5Comments

mcgriffa picture mcgriffa  路  11Comments

steam0 picture steam0  路  3Comments

coding-yogi picture coding-yogi  路  5Comments

jemmawells picture jemmawells  路  5Comments