Skip to content

Commit 42473f7

Browse files
committed
Version 1.0.0.
1 parent cc2c4d5 commit 42473f7

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

README.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,30 @@ Cross-platform compilation support for sbt.
99

1010
Requirements:
1111

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+
1414
* For `NativePlatform`: Scala Native 0.3.7+
1515

16+
If you are still using sbt 0.13.x, you must use sbt-crossproject v0.6.1 instead of v1.0.0.
17+
1618
<h2>Installation</h2>
1719

1820
<h3>Cross-Compiling Scala.js, JVM and Native</h3>
1921

2022
In `project/plugins.sbt`:
2123

2224
```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")
2628
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.3.7")
2729
```
2830

2931
In `build.sbt`:
3032

3133
```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}
3436

3537
val sharedSettings = Seq(scalaVersion := "2.11.12")
3638

@@ -116,7 +118,7 @@ lazy val bar =
116118
In `project/plugins.sbt`:
117119

118120
```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")
120122
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.3.7")
121123
```
122124

@@ -139,14 +141,14 @@ lazy val barJVM = bar.jvm
139141
lazy val barNative = bar.native
140142
```
141143

142-
<h3>Migration from Scala.js' default crossProject</h3>
144+
<h3>Migration from Scala.js 0.6.x' default crossProject</h3>
143145

144146
We carefully implemented sbt-crossproject to be mostly source compatible with Scala.js crossProject
145147

146148
In `project/plugins.sbt`:
147149

148150
```scala
149-
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "0.6.1")
151+
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.0.0")
150152
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.23")
151153
```
152154

project/Extra.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ object Extra {
88

99
val sbtPluginSettings = Def.settings(
1010
organization := "org.portable-scala",
11-
version := "1.0.0-SNAPSHOT",
11+
version := "1.0.0",
1212
sbtPlugin := true,
1313
scalacOptions ++= Seq(
1414
"-deprecation",

0 commit comments

Comments
 (0)