@@ -9,28 +9,30 @@ Cross-platform compilation support for sbt.
9
9
10
10
Requirements:
11
11
12
- * sbt 0.13.17+ or 1.2.1+
13
- * For ` JSPlatform ` : Scala.js 0.6.23+ or 1.0.0-M2 +
12
+ * sbt 1.2.1+
13
+ * For ` JSPlatform ` : Scala.js 0.6.23+ or 1.0.0+
14
14
* For ` NativePlatform ` : Scala Native 0.3.7+
15
15
16
+ If you are still using sbt 0.13.x, you must use sbt-crossproject v0.6.1 instead of v1.0.0.
17
+
16
18
<h2 >Installation</h2 >
17
19
18
20
<h3 >Cross-Compiling Scala.js, JVM and Native</h3 >
19
21
20
22
In ` project/plugins.sbt ` :
21
23
22
24
``` scala
23
- addSbtPlugin(" org.portable-scala" % " sbt-scalajs-crossproject" % " 0.6.1 " )
24
- addSbtPlugin(" org.portable-scala" % " sbt-scala-native-crossproject" % " 0.6.1 " )
25
- addSbtPlugin(" org.scala-js" % " sbt-scalajs" % " 0.6.23 " )
25
+ addSbtPlugin(" org.portable-scala" % " sbt-scalajs-crossproject" % " 1.0.0 " )
26
+ addSbtPlugin(" org.portable-scala" % " sbt-scala-native-crossproject" % " 1.0.0 " )
27
+ addSbtPlugin(" org.scala-js" % " sbt-scalajs" % " 1.0.0 " )
26
28
addSbtPlugin(" org.scala-native" % " sbt-scala-native" % " 0.3.7" )
27
29
```
28
30
29
31
In ` build.sbt ` :
30
32
31
33
``` scala
32
- // shadow sbt-scalajs' crossProject and CrossType from Scala.js 0.6.x
33
- import sbtcrossproject .CrossPlugin .autoImport .{crossProject , CrossType }
34
+ // If you are using Scala.js 0.6.x, you need the following import:
35
+ // import sbtcrossproject.CrossPlugin.autoImport.{crossProject, CrossType}
34
36
35
37
val sharedSettings = Seq (scalaVersion := " 2.11.12" )
36
38
@@ -116,7 +118,7 @@ lazy val bar =
116
118
In ` project/plugins.sbt ` :
117
119
118
120
``` scala
119
- addSbtPlugin(" org.portable-scala" % " sbt-scala-native-crossproject" % " 0.6.1 " )
121
+ addSbtPlugin(" org.portable-scala" % " sbt-scala-native-crossproject" % " 1.0.0 " )
120
122
addSbtPlugin(" org.scala-native" % " sbt-scala-native" % " 0.3.7" )
121
123
```
122
124
@@ -139,14 +141,14 @@ lazy val barJVM = bar.jvm
139
141
lazy val barNative = bar.native
140
142
```
141
143
142
- <h3 >Migration from Scala.js' default crossProject</h3 >
144
+ <h3 >Migration from Scala.js 0.6.x ' default crossProject</h3 >
143
145
144
146
We carefully implemented sbt-crossproject to be mostly source compatible with Scala.js crossProject
145
147
146
148
In ` project/plugins.sbt ` :
147
149
148
150
``` scala
149
- addSbtPlugin(" org.portable-scala" % " sbt-scalajs-crossproject" % " 0.6.1 " )
151
+ addSbtPlugin(" org.portable-scala" % " sbt-scalajs-crossproject" % " 1.0.0 " )
150
152
addSbtPlugin(" org.scala-js" % " sbt-scalajs" % " 0.6.23" )
151
153
```
152
154
0 commit comments