@@ -10,6 +10,15 @@ 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
+ disablePublishing // in root
21
+
13
22
lazy val core = project.in(file(" core" )).settings(scalaModuleSettings).settings(scalaModuleOsgiSettings).settings(
14
23
name := " scala-parallel-collections" ,
15
24
OsgiKeys .exportPackage := Seq (s " scala.collection.parallel.*;version= ${version.value}" ),
@@ -33,17 +42,17 @@ lazy val junit = project.in(file("junit")).settings(
33
42
libraryDependencies += " com.novocode" % " junit-interface" % " 0.11" % " test" ,
34
43
testOptions += Tests .Argument (TestFrameworks .JUnit , " -a" , " -v" ),
35
44
fork in Test := true ,
36
- publishArtifact := false
45
+ disablePublishing
37
46
).dependsOn(testmacros, core)
38
47
39
48
lazy val scalacheck = project.in(file(" scalacheck" )).settings(
40
49
libraryDependencies += " org.scalacheck" % " scalacheck_2.12" % " 1.13.4" ,
41
50
fork in Test := true ,
42
51
testOptions in Test += Tests .Argument (TestFrameworks .ScalaCheck , " -workers" , " 1" , " -minSize" , " 0" , " -maxSize" , " 4000" , " -minSuccessfulTests" , " 5" ),
43
- publishArtifact := false
52
+ disablePublishing
44
53
).dependsOn(core)
45
54
46
55
lazy val testmacros = project.in(file(" testmacros" )).settings(
47
56
libraryDependencies += scalaOrganization.value % " scala-compiler" % scalaVersion.value,
48
- publishArtifact := false
57
+ disablePublishing
49
58
)
0 commit comments