Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1f1d5c1

Browse files
committed
fix warning
https://github.com/portable-scala/sbt-crossproject/tree/f1a6e1c7c#cross-compiling-scalajs-jvm-and-native ``` build.sbt:20: warning: method crossProjectFromBuilder in trait CrossProjectExtra is deprecated: The built-in cross-project feature of sbt-scalajs is deprecated. Use the separate sbt plugin sbt-crossproject instead: https://github.com/portable-scala/sbt-crossproject lazy val `scala-parser-combinators` = crossProject.in(file(".")). ^ ```
1 parent 8b02d6f commit 1f1d5c1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

‎build.sbt‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import ScalaModulePlugin._
2+
import sbtcrossproject.crossProject
23

34
scalaVersionsByJvm in ThisBuild := {
45
val v211 = "2.11.12"
@@ -17,7 +18,7 @@ lazy val root = project.in(file("."))
1718
.aggregate(`scala-parser-combinatorsJS`, `scala-parser-combinatorsJVM`)
1819
.settings(disablePublishing)
1920

20-
lazy val `scala-parser-combinators` = crossProject.in(file(".")).
21+
lazy val `scala-parser-combinators` = crossProject(JSPlatform, JVMPlatform).in(file(".")).
2122
settings(scalaModuleSettings: _*).
2223
jvmSettings(scalaModuleSettingsJVM).
2324
settings(

‎project/plugins.sbt‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
addSbtPlugin("org.scala-lang.modules" % "sbt-scala-module" % "1.0.14")
22

33
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.23")
4+
5+
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "0.4.0")

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /