Skip to content

Commit

Permalink
add artifact for scalacheck 1.15
Browse files Browse the repository at this point in the history
  • Loading branch information
danny-goldberg-rally committed Jan 26, 2021
1 parent 17d4dfa commit bae820d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
16 changes: 12 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,14 @@ def scSuffix(scalaCheckVersion: String): String = scalaCheckVersion match {
case ScalaCheck_1_12 => "_1-12"
case ScalaCheck_1_13 => "_1-13"
case ScalaCheck_1_14 => "_1-14"
case ScalaCheck_1_15 => "_1-15"
}

def scalaVersions(scalaCheckVersion: String): Seq[String] = scalaCheckVersion match {
case ScalaCheck_1_12 => Seq(Scala_2_11)
case ScalaCheck_1_13 => Seq(Scala_2_11, Scala_2_12)
case ScalaCheck_1_14 => Seq(Scala_2_11, Scala_2_12, Scala_2_13)
case ScalaCheck_1_15 => Seq(Scala_2_11, Scala_2_12, Scala_2_13)
}

def coreProject(srcPath: File, scalaCheckVersion: String): Project = {
Expand All @@ -77,11 +79,13 @@ def coreProject(srcPath: File, scalaCheckVersion: String): Project = {
}

lazy val `core_1-12` = coreProject(file("core_1-12"), ScalaCheck_1_12)
.settings(
semVerEnforceAfterVersion := Some("2.5.1"),
)
lazy val `core_1-13` = coreProject(file("core"), ScalaCheck_1_13)
lazy val `core_1-14` = coreProject(file("core"), ScalaCheck_1_14)
lazy val `core_1-15` = coreProject(file("core"), ScalaCheck_1_15)
.settings(
semVerEnforceAfterVersion := Some("2.5.2"),
)


def jodaProject(scalaCheckVersion: String): Project = {
val projectPath = "joda"
Expand All @@ -104,11 +108,15 @@ def jodaProject(scalaCheckVersion: String): Project = {
case ScalaCheck_1_12 => `core_1-12`
case ScalaCheck_1_13 => `core_1-13`
case ScalaCheck_1_14 => `core_1-14`
case ScalaCheck_1_15 => `core_1-15`
}) % "compile;test->test"
)
}

lazy val `joda_1-12` = jodaProject(ScalaCheck_1_12)
lazy val `joda_1-13` = jodaProject(ScalaCheck_1_13)
lazy val `joda_1-14` = jodaProject(ScalaCheck_1_14)

lazy val `joda_1-15` = jodaProject(ScalaCheck_1_15)
.settings(
semVerEnforceAfterVersion := Some("2.5.2"),
)
9 changes: 5 additions & 4 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ import sbt._
object Dependencies {

final val Scala_2_11 = "2.11.12"
final val Scala_2_12 = "2.12.6"
final val Scala_2_13 = "2.13.0"
final val Scala_2_12 = "2.12.13"
final val Scala_2_13 = "2.13.4"

final val ScalaCheck_1_12 = "1.12.6"
final val ScalaCheck_1_13 = "1.13.5"
final val ScalaCheck_1_14 = "1.14.0"
final val ScalaCheck_1_14 = "1.14.3"
final val ScalaCheck_1_15 = "1.15.2"

private val ScalaTest_2 = "2.2.6"
private val ScalaTest_3 = "3.0.8"
Expand All @@ -26,7 +27,7 @@ object Dependencies {
def scalaTest(scalaCheckVersion: String): ModuleID = {
val scalaTestVersion = scalaCheckVersion match {
case ScalaCheck_1_12 => ScalaTest_2
case ScalaCheck_1_13 | ScalaCheck_1_14 => ScalaTest_3
case ScalaCheck_1_13 | ScalaCheck_1_14 | ScalaCheck_1_15 => ScalaTest_3
}
"org.scalatest" %% "scalatest" % scalaTestVersion
}
Expand Down

0 comments on commit bae820d

Please sign in to comment.