How to fix conflicting cross-version suffixes?

6,110 views
Skip to first unread message

Jacobus

unread,
May 5, 2014, 10:03:06 PM5/5/14
to spray...@googlegroups.com
Hi there,

I'm updating my existing projects to Spray 1.3.1 but seems that spray-json and spray-can is unhappy with the version of Scala I'm using.

scalaVersion := "2.11.0"

libraryDependencies ++= Seq(
   "io.spray"            %%  "spray-json"        % "1.2.6",
   "io.spray"            %   "spray-can"           % "1.3.1"

If I comment out either spray-json or spray can, then sbu will run the update, but when both are there if fails with:

[error] Modules were resolved with conflicting cross-version suffixes in {file:/..:
[error]     org.parboiled:parboiled-scala _2.11, _2.10

I'm getting a similar error when adding akka:

libraryDependencies ++= Seq(
   "io.spray"                  %%  "spray-json"        % "1.2.6",
   "io.spray"                   %   "spray-can"           % "1.3.1"
   "com.typesafe.akka"   %%  "akka-actor"      % "2.3.2"

[error] Modules were resolved with conflicting cross-version suffixes in {file:/...:
[error]    org.parboiled:parboiled-scala _2.11, _2.10
[error]    com.typesafe.akka:akka-actor _2.10, _2.11

There was some note about cross version compilation being added for the Scala 2.11 version of spray somewhere...?

Kind regards,
Jacobus

Johannes Rudolph

unread,
May 6, 2014, 3:44:06 AM5/6/14
to spray...@googlegroups.com
Hi Jacobus,

see this message on the ML:

https://groups.google.com/d/topic/spray-user/OMHBs_rGPG4/discussion

tl;dr There's spray version available for Scala 2.11 is a nightly
version. Use a dependency like this:

"io.spray" %% “spray-can" % "1.3.1-20140423”

Johannes
> --
> You received this message because you are subscribed to the Google Groups
> "spray.io User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to spray-user+...@googlegroups.com.
> Visit this group at http://groups.google.com/group/spray-user.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/spray-user/74780914-4443-4c5e-b7d6-8e90f126444f%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Johannes

-----------------------------------------------
Johannes Rudolph
http://virtual-void.net

Jacobus

unread,
May 6, 2014, 4:27:01 AM5/6/14
to spray...@googlegroups.com
Hi Johannes,

I'm not in front of my PC at the moment, but tried this last night. Unfortunately the 1.3.1-20140423 version could not be resolved.

Kind regards,
Jacobus



--
You received this message because you are subscribed to a topic in the Google Groups "spray.io User List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/spray-user/9m4M3BEQjVg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to spray-user+...@googlegroups.com.

Johannes Rudolph

unread,
May 6, 2014, 4:39:23 AM5/6/14
to spray...@googlegroups.com

Jacobus

unread,
May 12, 2014, 3:33:23 PM5/12/14
to spray...@googlegroups.com, johannes...@googlemail.com
Thanks Johannes,

In the end I still got stuck with versioning issues.

[info] Updating {file:/home/j/projects/s4/}s4...
[info] Resolving jline#jline;2.11 ...
[info] downloading http://repo.spray.io/io/spray/spray-can_2.11/1.3.1-20140423/spray-can_2.11-1.3.1-20140423.jar ...
[info]     [SUCCESSFUL ] io.spray#spray-can_2.11;1.3.1-20140423!spray-can_2.11.jar(bundle) (7234ms)
[info] downloading http://repo.spray.io/io/spray/spray-io_2.11/1.3.1-20140423/spray-io_2.11-1.3.1-20140423.jar ...
[info]     [SUCCESSFUL ] io.spray#spray-io_2.11;1.3.1-20140423!spray-io_2.11.jar(bundle) (3527ms)
[info] downloading http://repo.spray.io/io/spray/spray-http_2.11/1.3.1-20140423/spray-http_2.11-1.3.1-20140423.jar ...
[info]     [SUCCESSFUL ] io.spray#spray-http_2.11;1.3.1-20140423!spray-http_2.11.jar(bundle) (6796ms)
[info] downloading http://repo.spray.io/io/spray/spray-util_2.11/1.3.1-20140423/spray-util_2.11-1.3.1-20140423.jar ...
[info]     [SUCCESSFUL ] io.spray#spray-util_2.11;1.3.1-20140423!spray-util_2.11.jar(bundle) (2721ms)
[info] Done updating.
[error] Modules were resolved with conflicting cross-version suffixes in {file:/home/j/projects/s4/}s4:

[error]    org.parboiled:parboiled-scala _2.11, _2.10
[error]    com.typesafe.akka:akka-actor _2.10, _2.11
[error]    io.spray:spray-util _2.11, <none>
[error]    io.spray:spray-http _2.11, <none>

This is my build.sbt

organization := "com.ssss"

name := "test"

version := "0.5.0"

scalaVersion := "2.11.0"

scalacOptions := Seq("-unchecked", "-deprecation", "-encoding", "utf8", "-feature")

unmanagedResourceDirectories in Compile <++= baseDirectory { base =>
    Seq( base / "src/main/webapp" )
}

resolvers ++= Seq(
  "sonatype releases" at "https://oss.sonatype.org/content/repositories/releases/",
  "sonatype snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/",
  "typesafe repo" at "http://repo.typesafe.com/typesafe/releases/",
  "spray repo" at "http://repo.spray.io/"
)


libraryDependencies ++= Seq(
   "io.spray"            %%  "spray-json"        % "1.2.6"
  ,"io.spray"            %% "spray-can"          % "1.3.1-20140423"
  ,"io.spray"            %   "spray-routing"     % "1.3.1"
  ,"io.spray"            %   "spray-testkit"     % "1.3.1"
  ,"com.typesafe.akka"   %%  "akka-actor"      % "2.3.2"
  ,"org.specs2"          %%  "specs2"            % "2.3.11"    % "test"
  ,"com.typesafe.slick"  %   "slick_2.11.0-RC4"  % "2.1.0-M1"
  ,"com.h2database"      %   "h2"                % "1.3.166"
  ,"postgresql"          %   "postgresql"        % "9.1-901.jdbc4"
  ,"junit"               %   "junit"             % "4.8.1"     % "test"
  ,"ch.qos.logback"      %   "logback-classic"   % "1.1.1"
  ,"org.scalatest"       %   "scalatest_2.11"    % "2.1.5"
  ,"org.seleniumhq.selenium" % "selenium-java" % "2.28.0" % "test"
)

seq(Twirl.settings: _*)

EclipseKeys.withSource := true

Thanks for the help.

Kind regards,
Jacobus

Johannes Rudolph

unread,
May 13, 2014, 5:14:52 AM5/13/14
to Jacobus, spray...@googlegroups.com
Hi Jacobus,

> libraryDependencies ++= Seq(
> ,"io.spray" %% "spray-can" % "1.3.1-20140423"
> ,"io.spray" % "spray-routing" % "1.3.1"
> ,"io.spray" % "spray-testkit" % "1.3.1"

You need to use version "1.3.1-20140423" for all of those dependencies
if you want to use Scala 2.11.

Jacobus

unread,
May 13, 2014, 5:32:08 AM5/13/14
to Johannes Rudolph, spray...@googlegroups.com
Ah dude, where was my brain ;-) Thanks!

David Kowis

unread,
May 29, 2014, 6:44:45 PM5/29/14
to spray...@googlegroups.com
On 05/12/2014 02:33 PM, Jacobus wrote:
> Thanks Johannes,
>
> In the end I still got stuck with versioning issues.

I'm running into this same problem but I'm trying to use spray 1.2

[error] Modules were resolved with conflicting cross-version suffixes in
{file:/home/dkowis/gitwork/personal/beefeater/}beefeater:
[error] org.parboiled:parboiled-scala _2.10, _2.11
[error] com.typesafe.akka:akka-actor _2.11, _2.10
[trace] Stack trace suppressed: run last *:update for the full output.

object Library {
//Versions
val sprayVersion = "1.2.1"
val akkaVersion = "2.3.3"
val log4j2Version = "2.0-rc1"
val sprayJsonVersion = "1.2.6"
val scalaTestVersion = "2.2.0-RC1"
val typesafeConfigVersion = "1.2.1"
val slickVersion = "2.1.0-M2"
val h2Version = "1.4.178"
val pgsqlVersion = "9.3-1101-jdbc41"
val cucumberVersion = "1.1.7"
val junitInterfaceVersion = "0.10"

//Testing Dependencies
val scalaTest = "org.scalatest" % "scalatest_2.10" % scalaTestVersion
val sprayTestkit = "io.spray" % "spray-testkit" % sprayVersion
val cucumberJunit = "info.cukes" % "cucumber-junit" % cucumberVersion
val cucumberScala = "info.cukes" %% "cucumber-scala" % cucumberVersion
val junitInterface = "com.novocode" % "junit-interface" %
junitInterfaceVersion

//Primary App depends
val akkaActor = "com.typesafe.akka" %% "akka-actor" % akkaVersion
val akkaSlf4j = "com.typesafe.akka" %% "akka-slf4j" % akkaVersion
val log4j2 = "org.apache.logging.log4j" % "log4j-core" % log4j2Version
val sprayCan = "io.spray" % "spray-can" % sprayVersion
val sprayRouting = "io.spray" % "spray-routing" % sprayVersion
val sprayJson = "io.spray" %% "spray-json" % sprayJsonVersion
val typesafeConfig = "com.typesafe" % "config" % typesafeConfigVersion

val postgresql = "org.postgresql" % "postgresql" % pgsqlVersion
val h2 = "com.h2database" % "h2" % h2Version
val slick = "com.typesafe.slick" %% "slick" % slickVersion
}

I have the spray repo in my resolvers list. I think perhaps the problem
lies with spray-json ?

Thanks,
David Kowis

signature.asc

David Kowis

unread,
May 29, 2014, 7:33:48 PM5/29/14
to spray...@googlegroups.com

On 05/13/2014 04:14 AM, Johannes Rudolph wrote:
> Hi Jacobus,
>
>> libraryDependencies ++= Seq(
>> ,"io.spray" %% "spray-can" % "1.3.1-20140423"
>> ,"io.spray" % "spray-routing" % "1.3.1"
>> ,"io.spray" % "spray-testkit" % "1.3.1"
>
> You need to use version "1.3.1-20140423" for all of those dependencies
> if you want to use Scala 2.11.

Must I use 1.3.1-20140423 to use scala 2.11 ? Yep. Derp. I should read
the documentation better. Sorry about that.

Thanks!

--
David Kowis

Jacobus

unread,
May 30, 2014, 2:50:39 AM5/30/14
to spray...@googlegroups.com
Hi David,

Don't know if you came right, but these all run happily together on scala 2.11.0


   "io.spray"            %%  "spray-json"        % "1.2.6"
  ,"io.spray"            %% "spray-can"          % "1.3.1-20140423"
  ,"io.spray"            %%   "spray-routing"    % "1.3.1-20140423"
  ,"io.spray"            %%   "spray-testkit"    % "1.3.1-20140423"

  ,"com.typesafe.akka"   %%  "akka-actor"        % "2.3.2"
  ,"org.specs2"          %%  "specs2"            % "2.3.11"    % "test"
  ,"com.typesafe.slick"  %   "slick_2.11.0-RC4"  % "2.1.0-M1"

Cheers,
Jacobus


--
You received this message because you are subscribed to a topic in the Google Groups "spray.io User List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/spray-user/9m4M3BEQjVg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to spray-user+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages