@@ -10,6 +10,17 @@ scalacOptions in ThisBuild ++= Seq("-deprecation", "-feature")
10
10
11
11
cancelable in Global := true
12
12
13
+ val disablePublishing = Seq [Setting [_]](
14
+ publishArtifact := false ,
15
+ // The above is enough for Maven repos but it doesn't prevent publishing of ivy.xml files
16
+ publish := {},
17
+ publishLocal := {}
18
+ )
19
+
20
+ lazy val root = (project in file(" ." ))
21
+ .settings(disablePublishing)
22
+ .aggregate(core, junit, scalacheck, testmacros)
23
+
13
24
lazy val core = project.in(file(" core" )).settings(scalaModuleSettings).settings(scalaModuleOsgiSettings).settings(
14
25
name := " scala-parallel-collections" ,
15
26
OsgiKeys .exportPackage := Seq (s " scala.collection.parallel.*;version= ${version.value}" ),
@@ -29,21 +40,20 @@ lazy val core = project.in(file("core")).settings(scalaModuleSettings).settings(
29
40
)
30
41
)
31
42
32
- lazy val junit = project.in(file(" junit" )).settings(
43
+ lazy val junit = project.in(file(" junit" )).settings(disablePublishing).settings(
33
44
libraryDependencies += " com.novocode" % " junit-interface" % " 0.11" % " test" ,
34
45
testOptions += Tests .Argument (TestFrameworks .JUnit , " -a" , " -v" ),
35
- fork in Test := true ,
36
- publishArtifact := false
46
+ fork in Test := true
37
47
).dependsOn(testmacros, core)
38
48
39
- lazy val scalacheck = project.in(file(" scalacheck" )).settings(
49
+ lazy val scalacheck = project.in(file(" scalacheck" )).settings(disablePublishing).settings(
40
50
libraryDependencies += " org.scalacheck" % " scalacheck_2.12" % " 1.13.4" ,
41
51
fork in Test := true ,
42
52
testOptions in Test += Tests .Argument (TestFrameworks .ScalaCheck , " -workers" , " 1" , " -minSize" , " 0" , " -maxSize" , " 4000" , " -minSuccessfulTests" , " 5" ),
43
53
publishArtifact := false
44
54
).dependsOn(core)
45
55
46
- lazy val testmacros = project.in(file(" testmacros" )).settings(
56
+ lazy val testmacros = project.in(file(" testmacros" )).settings(disablePublishing).settings(
47
57
libraryDependencies += " org.scala-lang" % " scala-compiler" % scalaVersion.value,
48
58
publishArtifact := false
49
59
)
0 commit comments