Skip to content

Commit

Permalink
Merge pull request #73 from lolgab/support-scala-native
Browse files Browse the repository at this point in the history
  • Loading branch information
larsrh authored Jan 30, 2021
2 parents 5ac5954 + ae47b80 commit c873db6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
13 changes: 9 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ inThisBuild(
List(
name := "discipline-munit",
organization := "org.typelevel",
scalaVersion := "2.13.3",
crossScalaVersions := Seq("2.11.12", "2.12.12", scalaVersion.value, "3.0.0-M2", "3.0.0-M3"),
scalaVersion := "2.13.4",
crossScalaVersions := Seq("2.11.12", "2.12.13", scalaVersion.value, "3.0.0-M2", "3.0.0-M3"),
homepage := Some(url("https://github.com/typelevel/discipline-munit")),
licenses += ("BSD 3-Clause", url(
"http://opensource.org/licenses/BSD-3-Clause"
Expand All @@ -28,13 +28,13 @@ inThisBuild(

lazy val root = project
.in(file("."))
.aggregate(coreJVM, coreJS)
.aggregate(coreJVM, coreJS, coreNative)
.settings(
publish := {},
publishLocal := {}
)

lazy val core = crossProject(JVMPlatform, JSPlatform)
lazy val core = crossProject(JVMPlatform, JSPlatform, NativePlatform)
.in(file("core"))
.settings(
moduleName := "discipline-munit",
Expand Down Expand Up @@ -64,11 +64,16 @@ lazy val core = crossProject(JVMPlatform, JSPlatform)
old
}
)
.nativeSettings(
crossScalaVersions := crossScalaVersions.value.filter(_.startsWith("2."))
)

lazy val coreJVM = core.jvm

lazy val coreJS = core.js

lazy val coreNative = core.native

sonatypeProfileName := "org.typelevel"

packagedArtifacts in root := Map.empty
4 changes: 4 additions & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.4.0")

addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.0")

addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.0.0")

addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "1.0.0")

addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.5")

addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.2")
Expand Down

0 comments on commit c873db6

Please sign in to comment.