Skip to content

Commit

Permalink
Merge pull request #592 from lolgab/fix-collection-compat
Browse files Browse the repository at this point in the history
Fix `scala-collection-compat` for Scala Native
  • Loading branch information
darkfrog26 authored Jun 4, 2024
2 parents fa80000 + 1dbe5ac commit bc7bdea
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ val perfolationVersion: String = "1.2.11"

val sourcecodeVersion: String = "0.4.2"

val collectionCompatVersion: String = "2.11.0"
val collectionCompatVersion: String = "2.12.0"

val moduloadVersion: String = "1.1.7"

Expand Down Expand Up @@ -123,10 +123,10 @@ lazy val core = crossProject(JVMPlatform, JSPlatform, NativePlatform)
"org.scalatest" %% "scalatest" % scalaTestVersion % Test
),
libraryDependencies ++= (
if (scalaVersion.value.startsWith("3.0")) {
Nil
if (scalaVersion.value.startsWith("2.12.")) {
List("org.scala-lang.modules" %%% "scala-collection-compat" % collectionCompatVersion)
} else {
List("org.scala-lang.modules" %% "scala-collection-compat" % collectionCompatVersion)
Nil
}
),
Test / publishArtifact := false,
Expand All @@ -153,10 +153,10 @@ lazy val cats = crossProject(JVMPlatform, JSPlatform) //, NativePlatform)
"org.typelevel" %% "cats-effect-testing-scalatest" % catsEffectTestingVersion % "test"
),
libraryDependencies ++= (
if (scalaVersion.value.startsWith("3.0")) {
Nil
if (scalaVersion.value.startsWith("2.12.")) {
List("org.scala-lang.modules" %%% "scala-collection-compat" % collectionCompatVersion)
} else {
List("org.scala-lang.modules" %% "scala-collection-compat" % collectionCompatVersion)
Nil
}
),
Test / publishArtifact := false
Expand Down

0 comments on commit bc7bdea

Please sign in to comment.