Skip to content

Commit 5734201

Browse files
authored
Update README
1 parent e6bfc84 commit 5734201

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ Using ScalaZ3
7777

7878
### On a single operating system / architecture
7979

80-
Create a folder named `unmanaged` at the same level as your `build.sbt` file, and copy the JAR file in `target/scala-2.XX/scalaz3_2.XX-4.7.1.jar` into it.
80+
Create a folder named `unmanaged` at the same level as your `build.sbt` file, and copy the JAR file in `target/scala-2.XX/scalaz3_2.XX-4.7.1.jar` into it, eg. if you are on Scala 2.12, name the file `target/scala-2.12/scalaz3_2.12-4.7.1.jar`.
8181

8282
Then add, the following lines to your `build.sbt` file:
8383

8484
```scala
85-
unmanagedJars in Compile += {
85+
Compile / unmanagedJars += {
8686
baseDirectory.value / "unmanaged" / s"scalaz3_${scalaBinaryVersion.value}-4.7.1.jar"
8787
}
8888
```
@@ -103,14 +103,15 @@ Add the following lines to your `build.sbt` file:
103103

104104
```scala
105105
val osInf = Option(System.getProperty("os.name")).getOrElse("")
106+
val osArch = System.getProperty("sun.arch.data.model")
106107

107108
val isUnix = osInf.indexOf("nix") >= 0 || osInf.indexOf("nux") >= 0
108109
val isWindows = osInf.indexOf("Win") >= 0
109110
val isMac = osInf.indexOf("Mac") >= 0
110111

111112
val osName = if (isWindows) "win" else if (isMac) "mac" else "unix"
112113

113-
unmanagedJars in Compile += {
114+
Compile / unmanagedJars += {
114115
baseDirectory.value / "unmanaged" / s"scalaz3-$osName-$osArch-${scalaBinaryVersion.value}.jar"
115116
}
116117
```

0 commit comments

Comments
 (0)