Skip to content

Commit c6e42d1

Browse files
authored
readme and build improvements (scala#33)
readme and build improvements
2 parents 90aeed6 + cb0bd9a commit c6e42d1

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
This module provides various additions to the Scala 2.13 standard collections.
44

5+
## Usage
6+
7+
If you're using sbt, you can add the dependency as follows:
8+
9+
```
10+
libraryDependencies += "org.scala-lang.modules" %% "scala-collection-contrib" % "0.1.0"
11+
```
12+
513
## New collection types
614

715
- `MultiSet` (both mutable and immutable)

build.sbt

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
11
import ScalaModulePlugin._
22

33
scalaModuleSettings
4+
scalaModuleSettingsJVM
45

56
name := "scala-collection-contrib"
6-
version := "0.1.0-SNAPSHOT"
7+
version := "0.1.1-SNAPSHOT"
78

8-
scalaVersionsByJvm in ThisBuild := {
9-
val v213 = "2.13.0"
10-
Map(
11-
8 -> List(v213 -> true),
12-
11 -> List(v213 -> false),
13-
12 -> List(v213 -> false))
14-
}
9+
crossScalaVersions in ThisBuild := Seq("2.13.0")
1510

1611
scalacOptions ++= Seq("-opt-warnings", "-language:higherKinds", "-deprecation", "-feature", "-Xfatal-warnings")
1712
scalacOptions in (Compile, doc) ++= Seq("-implicits", "-groups")
1813

1914
testOptions += Tests.Argument(TestFrameworks.JUnit, "-q", "-v", "-s", "-a")
2015
parallelExecution in Test := false // why?
2116

17+
mimaPreviousVersion := Some("0.1.0")
18+
2219
homepage := Some(url("https://github.com/scala/scala-collection-contrib"))
2320
licenses := Seq("Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0"))
2421

0 commit comments

Comments
 (0)