Skip to content

Commit 6db6dbe

Browse files
authored
Merge pull request #102 from SethTisue/scala-2.13.2
bump Scala version to 2.13.2 & enable -Werror
2 parents d9c295f + f4a6ceb commit 6db6dbe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+86
-196
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import: scala/scala-dev:travis/default.yml
55
language: scala
66

77
scala:
8-
- 2.13.0
8+
- 2.13.2
99

1010
env:
1111
- ADOPTOPENJDK=8

build.sbt

Lines changed: 23 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,40 @@
1-
resolvers in ThisBuild += "scala-integration" at "https://scala-ci.typesafe.com/artifactory/scala-integration/"
1+
Global / cancelable := true
2+
publish / skip := true // in root
23

3-
scalacOptions in ThisBuild ++= Seq("-deprecation", "-feature"/*, "-Xfatal-warnings"*/)
4-
5-
cancelable in Global := true
6-
7-
skip in publish := true // in root
8-
9-
lazy val commonSettings: Seq[Setting[_]] = Seq()
10-
11-
commonSettings // in root
4+
lazy val commonSettings: Seq[Setting[_]] =
5+
ScalaModulePlugin.scalaModuleSettings ++ Seq(
6+
Compile / compile / scalacOptions += "-Werror"
7+
)
128

139
lazy val core = project.in(file("core"))
14-
.settings(ScalaModulePlugin.scalaModuleSettings)
1510
.settings(commonSettings)
1611
.settings(
17-
name := "scala-parallel-collections"
18-
)
12+
name := "scala-parallel-collections"
13+
)
1914

2015
lazy val junit = project.in(file("junit"))
2116
.settings(commonSettings)
2217
.settings(
23-
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % Test,
24-
// for javax.xml.bind.DatatypeConverter, used in SerializationStabilityTest
25-
libraryDependencies += "javax.xml.bind" % "jaxb-api" % "2.3.1" % Test,
26-
testOptions += Tests.Argument(TestFrameworks.JUnit, "-a", "-v"),
27-
fork in Test := true,
28-
skip in publish := true
29-
).dependsOn(testmacros, core)
18+
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % Test,
19+
// for javax.xml.bind.DatatypeConverter, used in SerializationStabilityTest
20+
libraryDependencies += "javax.xml.bind" % "jaxb-api" % "2.3.1" % Test,
21+
testOptions += Tests.Argument(TestFrameworks.JUnit, "-a", "-v"),
22+
Test / fork := true,
23+
publish / skip := true
24+
).dependsOn(testmacros, core)
3025

3126
lazy val scalacheck = project.in(file("scalacheck"))
3227
.settings(commonSettings)
3328
.settings(
34-
libraryDependencies += "org.scalacheck" %% "scalacheck" % "1.14.3",
35-
fork in Test := true,
36-
testOptions in Test += Tests.Argument(TestFrameworks.ScalaCheck, "-workers", "1", "-minSize", "0", "-maxSize", "4000", "-minSuccessfulTests", "5"),
37-
skip in publish := true
38-
).dependsOn(core)
29+
libraryDependencies += "org.scalacheck" %% "scalacheck" % "1.14.3",
30+
Test / fork := true,
31+
Test / testOptions += Tests.Argument(TestFrameworks.ScalaCheck, "-workers", "1", "-minSize", "0", "-maxSize", "4000", "-minSuccessfulTests", "5"),
32+
publish / skip := true
33+
).dependsOn(core)
3934

4035
lazy val testmacros = project.in(file("testmacros"))
4136
.settings(commonSettings)
4237
.settings(
43-
libraryDependencies += scalaOrganization.value % "scala-compiler" % scalaVersion.value,
44-
skip in publish := true
45-
)
38+
libraryDependencies += scalaOrganization.value % "scala-compiler" % scalaVersion.value,
39+
publish / skip := true
40+
)

core/src/main/scala/scala/collection/Parallel.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,5 @@ package scala
1414
package collection
1515

1616
/** A marker trait for collections which have their operations parallelised.
17-
*
18-
* @since 2.9
19-
* @author Aleksandar Prokopec
2017
*/
2118
trait Parallel

core/src/main/scala/scala/collection/generic/CanCombineFrom.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import scala.collection.parallel._
2222
* builder to be created.
2323
* @tparam Elem the element type of the collection to be created.
2424
* @tparam To the type of the collection to be created.
25-
* @since 2.8
2625
*/
2726
trait CanCombineFrom[-From, -Elem, +To] extends Parallel {
2827
def apply(from: From): Combiner[Elem, To]

core/src/main/scala/scala/collection/generic/GenericParCompanion.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ package generic
1717
import scala.collection.parallel.Combiner
1818
import scala.collection.parallel.ParIterable
1919
import scala.collection.parallel.ParMap
20-
import scala.language.{higherKinds, implicitConversions}
20+
import scala.language.implicitConversions
2121

2222
/** A template class for companion objects of parallel collection classes.
2323
* They should be mixed in together with `GenericCompanion` type.
@@ -108,4 +108,4 @@ object GenericParMapCompanion {
108108
def newBuilder: mutable.Builder[(K, V), CC[K, V]] = parFactory.newCombiner
109109
}
110110

111-
}
111+
}

core/src/main/scala/scala/collection/generic/GenericParTemplate.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,11 @@ import scala.collection.parallel.ParIterable
1919
import scala.collection.parallel.ParMap
2020

2121
import scala.annotation.unchecked.uncheckedVariance
22-
import scala.language.higherKinds
2322

2423
/** A template trait for collections having a companion.
2524
*
2625
* @tparam A the element type of the collection
2726
* @tparam CC the type constructor representing the collection class
28-
* @author Aleksandar Prokopec
29-
* @since 2.8
3027
*/
3128
trait GenericParTemplate[+A, +CC[X] <: ParIterable[X]]
3229
extends GenericTraversableTemplate[A, CC]

core/src/main/scala/scala/collection/generic/GenericTraversableTemplate.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
package scala.collection.generic
1414

15-
import scala.language.higherKinds
1615
import scala.annotation.migration
1716
import scala.annotation.unchecked.uncheckedVariance
1817
import scala.collection.mutable.Builder
@@ -23,8 +22,6 @@ import scala.collection.parallel.ParIterable
2322
*
2423
* @tparam A The type of the collection elements.
2524
* @tparam CC The type constructor representing the collection class.
26-
* @author Martin Odersky
27-
* @since 2.8
2825
* @define coll collection
2926
*/
3027
// TODO inline in GenericParTemplate or ParIterable

core/src/main/scala/scala/collection/generic/HasNewCombiner.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ package generic
1616

1717
import scala.collection.parallel.Combiner
1818

19-
/**
20-
* @since 2.8
21-
*/
2219
trait HasNewCombiner[+T, +Repr] {
2320
protected[this] def newCombiner: Combiner[T, Repr]
2421
}

core/src/main/scala/scala/collection/generic/ParFactory.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ package collection
1515
package generic
1616

1717
import scala.collection.parallel.ParIterable
18-
import scala.language.higherKinds
1918

2019
/** A template class for companion objects of `ParIterable` and subclasses
2120
* thereof. This class extends `TraversableFactory` and provides a set of
@@ -25,7 +24,6 @@ import scala.language.higherKinds
2524
* This object provides a set of operations needed to create `$Coll` values.
2625
* @define coll parallel collection
2726
* @define Coll `ParIterable`
28-
* @since 2.8
2927
*/
3028
abstract class ParFactory[CC[X] <: ParIterable[X] with GenericParTemplate[X, CC]]
3129
extends GenericParCompanion[CC] {

core/src/main/scala/scala/collection/generic/ParMapFactory.scala

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ package generic
1717
import scala.collection.parallel.ParMap
1818
import scala.collection.parallel.ParMapLike
1919
import scala.collection.parallel.Combiner
20-
import scala.language.higherKinds
2120

2221
/** A template class for companion objects of `ParMap` and subclasses thereof.
2322
* This class extends `TraversableFactory` and provides a set of operations
@@ -27,8 +26,6 @@ import scala.language.higherKinds
2726
* @define Coll `ParMap`
2827
* @define factoryInfo
2928
* This object provides a set of operations needed to create `$Coll` values.
30-
* @author Aleksandar Prokopec
31-
* @since 2.8
3229
*/
3330
abstract class ParMapFactory[CC[X, Y] <: ParMap[X, Y] with ParMapLike[X, Y, CC, CC[X, Y], _]]
3431
extends GenericParMapCompanion[CC] {
@@ -67,4 +64,4 @@ extends GenericParMapCompanion[CC] {
6764
def apply() = newCombiner[K, V]
6865
}
6966

70-
}
67+
}

0 commit comments

Comments
 (0)