commercetools / sphere-play-sdk

Java API client and helper classes for building a SPHERE.IO shop on Play 2.2
http://sphere.io
7 stars 6 forks source link

Scala 2.11.x support #128

Closed MeiSign closed 9 years ago

MeiSign commented 9 years ago

Java version: 1.8 Play version: 2.3.6 SDK Version: 1.0.0-M6

Is there scala 2.11.x support in the next versions? Currently these dependencies fail if I try to compile a project using sphere with Scala 2.11.x

[error] Modules were resolved with conflicting cross-version suffixes in root:
[error]    org.scalaz:scalaz-effect _2.10, _2.11
[error]    org.specs2:specs2-mock _2.10, _2.11
[error]    com.typesafe.play:play-functional _2.11, _2.10
[error]    org.specs2:specs2-analysis _2.10, _2.11
[error]    com.typesafe.akka:akka-actor _2.11, _2.10
[error]    com.typesafe.play:play-json _2.11, _2.10
[error]    com.typesafe.play:play _2.11, _2.10
[error]    org.specs2:specs2-matcher-extra _2.10, _2.11
[error]    org.specs2:specs2-junit _2.10, _2.11
[error]    com.typesafe.play:play-iteratees _2.11, _2.10
[error]    com.typesafe.play:twirl-api _2.11, _2.10
[error]    com.typesafe.play:play-test _2.10, _2.11
[error]    org.specs2:specs2-common _2.10, _2.11
[error]    org.scalaz:scalaz-concurrent _2.10, _2.11
[error]    org.specs2:specs2-core _2.10, _2.11
[error]    org.scalaz:scalaz-core _2.10, _2.11
[error]    org.specs2:specs2-matcher _2.10, _2.11
[error]    com.typesafe.akka:akka-slf4j _2.11, _2.10
[error]    org.scala-stm:scala-stm _2.11, _2.10
[error]    com.typesafe.play:play-datacommons _2.11, _2.10
schleichardt commented 9 years ago

Can you try:

resolvers += Resolver.sonatypeRepo("releases")

libraryDependencies ++= Seq(
  "io.sphere.sdk.jvm" % "models" % "1.0.0-M7",
  "io.sphere.sdk.jvm" %% "play-2_3-java-client" % "1.0.0-M8"
)

scalaVersion := "2.11.4"
MeiSign commented 9 years ago

Works great! Thank you