Skip to content

Commit 62cef69

Browse files
authored
Merge pull request #129 from SethTisue/scala-3.0.0-M1
bye Dotty, hello Scala 3.0.0-M1
2 parents dc9b965 + ea59b24 commit 62cef69

File tree

2 files changed

+8
-26
lines changed

2 files changed

+8
-26
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ language: scala
66

77
scala:
88
- 2.13.3
9-
- 0.27.0-RC1
9+
- 3.0.0-M1
1010

1111
env:
1212
- ADOPTOPENJDK=8

build.sbt

+7-25
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
Global / cancelable := true
22
publish / skip := true // in root
33

4-
Global / scalacOptions ++= (
5-
if (isDotty.value) Seq("-language:implicitConversions") // TODO check again on 3.0.0-M1
6-
else Seq()
7-
)
8-
94
lazy val commonSettings: Seq[Setting[_]] =
105
ScalaModulePlugin.scalaModuleSettings ++ Seq(
116
Compile / compile / scalacOptions --= (if (isDotty.value) Seq("-Xlint")
@@ -32,21 +27,12 @@ lazy val junit = project.in(file("junit"))
3227
testOptions += Tests.Argument(TestFrameworks.JUnit, "-a", "-v"),
3328
Test / fork := true,
3429
publish / skip := true,
35-
// https://github.com/sbt/sbt/pull/5919 adds this to sbt itself,
36-
// so we should revisit once sbt 1.4.1 is available
37-
Test / unmanagedSourceDirectories += {
38-
val major = CrossVersion.partialVersion(scalaVersion.value) match {
39-
case Some((0 | 3, _)) => "3"
40-
case _ => "2"
41-
}
42-
baseDirectory.value / "src" / "test" / s"scala-$major"
43-
},
4430
).dependsOn(testmacros, core)
4531

4632
lazy val scalacheck = project.in(file("scalacheck"))
4733
.settings(commonSettings)
4834
.settings(
49-
libraryDependencies += "org.scalacheck" %% "scalacheck" % "1.15.0" withDottyCompat(scalaVersion.value),
35+
libraryDependencies += "org.scalacheck" %% "scalacheck" % "1.15.0",
5036
Test / fork := true,
5137
Test / testOptions += Tests.Argument(TestFrameworks.ScalaCheck, "-workers", "1", "-minSize", "0", "-maxSize", "4000", "-minSuccessfulTests", "5"),
5238
publish / skip := true
@@ -55,15 +41,11 @@ lazy val scalacheck = project.in(file("scalacheck"))
5541
lazy val testmacros = project.in(file("testmacros"))
5642
.settings(commonSettings)
5743
.settings(
58-
libraryDependencies += scalaOrganization.value % "scala-compiler" % scalaVersion.value,
44+
libraryDependencies += (
45+
if (isDotty.value)
46+
scalaOrganization.value %% "scala3-compiler" % scalaVersion.value
47+
else
48+
scalaOrganization.value % "scala-compiler" % scalaVersion.value
49+
),
5950
publish / skip := true,
60-
// https://github.com/sbt/sbt/pull/5919 adds this to sbt itself,
61-
// so we should revisit once sbt 1.4.1 is available
62-
Compile / unmanagedSourceDirectories += {
63-
val major = CrossVersion.partialVersion(scalaVersion.value) match {
64-
case Some((0 | 3, _)) => "3"
65-
case _ => "2"
66-
}
67-
baseDirectory.value / "src" / "main" / s"scala-$major"
68-
},
6951
)

0 commit comments

Comments
 (0)