You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by ro...@apache.org on 2024/06/03 14:52:10 UTC

(pekko-persistence-jdbc) branch main updated: transitive dependency `scala-reflect` to avoid slick issue (#202)

This is an automated email from the ASF dual-hosted git repository.

roiocam pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-persistence-jdbc.git


The following commit(s) were added to refs/heads/main by this push:
     new aae283c  transitive dependency `scala-reflect` to avoid slick issue (#202)
aae283c is described below

commit aae283c2df6aa4cf66dec2168ddf3c634907ebe6
Author: AndyChen(Jingzhang) <iR...@gmail.com>
AuthorDate: Mon Jun 3 22:52:04 2024 +0800

    transitive dependency `scala-reflect` to avoid slick issue (#202)
    
    * transitive dependency `scala-reflect` to avoid slick issue
    
    * fix scala3 build
---
 build.sbt | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/build.sbt b/build.sbt
index 04fe4e5..db4b28a 100644
--- a/build.sbt
+++ b/build.sbt
@@ -37,6 +37,12 @@ lazy val core = project
   .settings(
     name := "pekko-persistence-jdbc",
     libraryDependencies ++= Dependencies.Libraries,
+    // 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
+    }),
     mimaReportSignatureProblems := true,
     mimaPreviousArtifacts := Set(
       organization.value %% name.value % mimaCompareVersion))


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org