Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: scala

scala:
- 2.13.3
- 0.27.0-RC1
- 3.0.0-M1

env:
- ADOPTOPENJDK=8
Expand Down
32 changes: 7 additions & 25 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
Global / cancelable := true
publish / skip := true // in root

Global / scalacOptions ++= (
if (isDotty.value) Seq("-language:implicitConversions") // TODO check again on 3.0.0-M1
else Seq()
)

lazy val commonSettings: Seq[Setting[_]] =
ScalaModulePlugin.scalaModuleSettings ++ Seq(
Compile / compile / scalacOptions --= (if (isDotty.value) Seq("-Xlint")
Expand All @@ -32,21 +27,12 @@ lazy val junit = project.in(file("junit"))
testOptions += Tests.Argument(TestFrameworks.JUnit, "-a", "-v"),
Test / fork := true,
publish / skip := true,
// https://github.com/sbt/sbt/pull/5919 adds this to sbt itself,
// so we should revisit once sbt 1.4.1 is available
Test / unmanagedSourceDirectories += {
val major = CrossVersion.partialVersion(scalaVersion.value) match {
case Some((0 | 3, _)) => "3"
case _ => "2"
}
baseDirectory.value / "src" / "test" / s"scala-$major"
},
).dependsOn(testmacros, core)

lazy val scalacheck = project.in(file("scalacheck"))
.settings(commonSettings)
.settings(
libraryDependencies += "org.scalacheck" %% "scalacheck" % "1.15.0" withDottyCompat(scalaVersion.value),
libraryDependencies += "org.scalacheck" %% "scalacheck" % "1.15.0",
Test / fork := true,
Test / testOptions += Tests.Argument(TestFrameworks.ScalaCheck, "-workers", "1", "-minSize", "0", "-maxSize", "4000", "-minSuccessfulTests", "5"),
publish / skip := true
Expand All @@ -55,15 +41,11 @@ lazy val scalacheck = project.in(file("scalacheck"))
lazy val testmacros = project.in(file("testmacros"))
.settings(commonSettings)
.settings(
libraryDependencies += scalaOrganization.value % "scala-compiler" % scalaVersion.value,
libraryDependencies += (
if (isDotty.value)
scalaOrganization.value %% "scala3-compiler" % scalaVersion.value
else
scalaOrganization.value % "scala-compiler" % scalaVersion.value
),
publish / skip := true,
// https://github.com/sbt/sbt/pull/5919 adds this to sbt itself,
// so we should revisit once sbt 1.4.1 is available
Compile / unmanagedSourceDirectories += {
val major = CrossVersion.partialVersion(scalaVersion.value) match {
case Some((0 | 3, _)) => "3"
case _ => "2"
}
baseDirectory.value / "src" / "main" / s"scala-$major"
},
)