diff --git a/build.sbt b/build.sbt index 790a84f..bab66c9 100644 --- a/build.sbt +++ b/build.sbt @@ -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" @@ -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", @@ -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 diff --git a/project/plugins.sbt b/project/plugins.sbt index 76dba77..ae81219 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -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")