Skip to content

Commit

Permalink
add scala-reflect dependency for slick (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning authored Jun 17, 2024
1 parent 0afbf60 commit 1051466
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ lazy val slick =
.enablePlugins(ReproducibleBuildsPlugin)
.settings(headerSettings(IntegrationTest))
.settings(Defaults.itSettings)
.settings(
// Transitive dependency `scala-reflect` to avoid `NoClassDefFoundError`.
// See: https://github.com/slick/slick/issues/2933
libraryDependencies ++= (CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, _)) => Seq("org.scala-lang" % "scala-reflect" % scalaVersion.value)
case _ => Nil
}))
.settings(Dependencies.slick)
.settings(AutomaticModuleName.settings("pekko.projection.slick"))
.settings(
Expand Down

0 comments on commit 1051466

Please sign in to comment.