Reputation: 11
We're attempting to upgrade our Scala app from 2.12.20
to 2.13.0
but as soon as we do, we get the following error when trying to compile:
[error] (update) org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 326; The reference to entity "display" must end with the ';' delimiter.
at scala.concurrent.impl.Promise.transform(Promise.scala:33)
Versions: sbt: 1.3.13
jdk: 11.0.24
sbt-play: 2.8.8
scala-sbt: 2.13.0
build.sbt
:
.....
version := conf.getString("app.version")
scalaVersion := "2.13.0"
// Dependencies
libraryDependencies ++= Seq(
guice,
ws,
"org.skinny-framework" %% "skinny-orm" % "2.6.0" withSources(),
"org.scalikejdbc" %% "scalikejdbc-play-initializer" % "2.6.+" withSources(),
"org.scalikejdbc" %% "scalikejdbc" % "3.3.1" withSources(),
"com.typesafe.play" %% "play-slick" % "3.0.0" withSources(),
"com.auth0" % "java-jwt" % "3.2.0", // Don't update it! will have jackson conflict
"org.scalatestplus.play" %% "scalatestplus-play" % "3.1.2" % Test,
"org.mockito" % "mockito-all" % "1.10.19" % Test,
"com.amazonaws" % "aws-java-sdk" % "1.11.313",
"org.flywaydb" %% "flyway-play" % "5.0.0",
"org.postgresql" % "postgresql" % "42.2.2",
"com.typesafe.akka" %% "akka-testkit" % "2.5.12" % Test,
"com.chuusai" %% "shapeless" % "2.3.3",
"org.typelevel" %% "cats-core" % "1.1.0",
"org.lyranthe.prometheus" %% "client" % "0.9.0-M5",
"io.split.client" % "java-client" % "2.3.1",
"com.segment.analytics.java" % "analytics" % "2.1.0",
"it.innove" % "play2-pdf" % "1.7.0",
"org.webjars" % "swagger-ui" % "2.2.0",
"com.fasterxml.jackson.module" %% "jackson-module-scala" % "2.12.7",
"com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % "2.12.7",
"com.github.jasminb" % "jsonapi-converter" % "0.11",
"de.leanovate.play-mockws" %% "play-mockws" % "2.6.0" % Test,
"org.scalatest" %% "scalatest" % "3.0.1" % Test,
"com.xero" % "idam-java-auth-sdk" % "0.2.5",
"javax.xml.bind" % "jaxb-api" % "2.3.1"
)
val akkaVersion = "2.5.12"
dependencyOverrides ++= Seq(
"com.typesafe.akka" %% "akka-actor" % akkaVersion withSources(),
"com.typesafe.akka" %% "akka-stream" % akkaVersion withSources(),
"com.google.guava" % "guava" % "22.0",
"org.slf4j" % "slf4j-api" % "1.7.25",
"org.bitbucket.b_c" % "jose4j" % "0.5.5",
)
plugins.sbt
:
// The Play plugin
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.6.9")
// workaround for missing static SLF4J binder for logback
libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.2.3"
// Scala style plugin
addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "1.0.0")
// SBT coverage plugin
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.9.3")
// Flyway plugin
resolvers += "Flyway" at "https://davidmweber.github.io/flyway-sbt.repo"
addSbtPlugin("io.github.davidmweber" % "flyway-sbt" % "7.4.0")
// SBT Dependency Graph plugin
addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.10.0-RC1")
// Play swagger Docs
addSbtPlugin("io.github.play-swagger" % "sbt-play-swagger" % "1.2.3")
We've upgraded the dependencies to ensure they are compatible with 2.13.0
and we have confirmed that we still get the error when compiling with the dependencies commented out, which alludes to them not being the cause of the problem. We've also tried other Scala patch versions but with the same result.
Upvotes: 1
Views: 27