Skip to content

Commit

Permalink
Merge pull request #393 from griggt/update/3.0.0-M2
Browse files Browse the repository at this point in the history
Update for Scala 3.0.0-M2
  • Loading branch information
SethTisue authored Nov 24, 2020
2 parents f3a741b + da71914 commit 868ed96
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ admin/.coursier
admin/.scalafmt*

# metals
/.bloop/
.bloop/
/.metals/
/project/**/metals.sbt

Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ scala:
- 2.11.12
- 2.12.12
- 2.13.3
- 3.0.0-M1
- 3.0.0-M2

env:
- SCALAJS_VERSION= ADOPTOPENJDK=8
Expand Down
18 changes: 8 additions & 10 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ lazy val junit = libraryDependencies += "com.novocode" % "junit-interface" % "0.
lazy val scala211 = "2.11.12"
lazy val scala212 = "2.12.12"
lazy val scala213 = "2.13.3"
lazy val scala30 = "3.0.0-M1"
lazy val scala30 = "3.0.0-M2"

lazy val compat = MultiScalaCrossProject(JSPlatform, JVMPlatform, NativePlatform)(
"compat",
Expand Down Expand Up @@ -83,15 +83,13 @@ lazy val compat = MultiScalaCrossProject(JSPlatform, JVMPlatform, NativePlatform
)
.jsSettings(
scalacOptions ++= {
if (isDotty.value) Seq() // Scala.js does not support -P with Scala 3: lampepfl/dotty#9783
else {
val x = (LocalRootProject / baseDirectory).value.toURI.toString
val y = "https://raw.githubusercontent.com/scala/scala-collection-compat/" + sys.process
.Process("git rev-parse HEAD")
.lineStream_!
.head
Seq(s"-P:scalajs:mapSourceURI:$x->$y/")
}
val x = (LocalRootProject / baseDirectory).value.toURI.toString
val y = "https://raw.githubusercontent.com/scala/scala-collection-compat/" + sys.process
.Process("git rev-parse HEAD")
.lineStream_!
.head
val opt = if (isDotty.value) "-scalajs-mapSourceURI" else "-P:scalajs:mapSourceURI"
Seq(s"$opt:$x->$y/")
},
Test / fork := false // Scala.js cannot run forked tests
)
Expand Down

0 comments on commit 868ed96

Please sign in to comment.