Skip to content

Commit

Permalink
Merge pull request #42 from lolgab/update-scala-native-0.4.0
Browse files Browse the repository at this point in the history
Update Scala Native to 0.4.0
  • Loading branch information
tindzk committed Jan 25, 2021
2 parents 147279f + 6fd956a commit 1e53ebf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
20 changes: 6 additions & 14 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
// shadow sbt-scalajs' crossProject and CrossType from Scala.js 0.6.x
import sbtcrossproject.CrossPlugin.autoImport.{crossProject, CrossType}

val Leaf = "0.1.0"
val Scala2_11 = "2.11.12"
val Scala2_12 = "2.12.12"
val Scala2_13 = "2.13.3"
val ScalaTest = "3.2.2"
val Scala2_12 = "2.12.13"
val Scala2_13 = "2.13.4"
val ScalaTest = "3.2.4-M1"

val SharedSettings = Seq(
name := "trail",
Expand Down Expand Up @@ -41,28 +38,23 @@ val SharedSettings = Seq(

lazy val root = project.in(file("."))
.aggregate(trail.js, trail.jvm, trail.native)
.settings(SharedSettings: _*)
.settings(SharedSettings)
.settings(skip in publish := true)

lazy val trail = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.in(file("."))
.settings(SharedSettings: _*)
.settings(SharedSettings)
.settings(
autoAPIMappings := true,
apiMappings += (scalaInstance.value.libraryJar -> url(s"http://www.scala-lang.org/api/${scalaVersion.value}/")),
libraryDependencies ++= Seq("freespec", "wordspec", "funspec", "funsuite", "shouldmatchers").map(module =>
"org.scalatest" %%% s"scalatest-$module" % ScalaTest % Test
)
).nativeSettings(
scalaVersion := Scala2_11,
crossScalaVersions := Seq(Scala2_11),
// See https://github.com/scalalandio/chimney/issues/78#issuecomment-419705142
Test / nativeLinkStubs := true
)

lazy val manual = project.in(file("manual"))
.dependsOn(trail.jvm)
.settings(SharedSettings: _*)
.settings(SharedSettings)
.settings(
name := "manual",
publishArtifact := false,
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.3.13
sbt.version=1.4.6
4 changes: 2 additions & 2 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ logLevel := Level.Warn

addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.0.0")
addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "1.0.0")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.2.0")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.0-M2")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.3.1")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.0")

0 comments on commit 1e53ebf

Please sign in to comment.