Skip to content

totally disable publishing of non-core subprojects #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ scalacOptions in ThisBuild ++= Seq("-deprecation", "-feature")

cancelable in Global := true

val disablePublishing = Seq[Setting[_]](
publishArtifact := false,
// The above is enough for Maven repos but it doesn't prevent publishing of ivy.xml files
publish := {},
publishLocal := {}
)

disablePublishing // in root

lazy val core = project.in(file("core")).settings(scalaModuleSettings).settings(scalaModuleOsgiSettings).settings(
name := "scala-parallel-collections",
OsgiKeys.exportPackage := Seq(s"scala.collection.parallel.*;version=${version.value}"),
Expand All @@ -33,17 +42,17 @@ lazy val junit = project.in(file("junit")).settings(
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % "test",
testOptions += Tests.Argument(TestFrameworks.JUnit, "-a", "-v"),
fork in Test := true,
publishArtifact := false
disablePublishing
).dependsOn(testmacros, core)

lazy val scalacheck = project.in(file("scalacheck")).settings(
libraryDependencies += "org.scalacheck" % "scalacheck_2.12" % "1.13.4",
fork in Test := true,
testOptions in Test += Tests.Argument(TestFrameworks.ScalaCheck, "-workers", "1", "-minSize", "0", "-maxSize", "4000", "-minSuccessfulTests", "5"),
publishArtifact := false
disablePublishing
).dependsOn(core)

lazy val testmacros = project.in(file("testmacros")).settings(
libraryDependencies += scalaOrganization.value % "scala-compiler" % scalaVersion.value,
publishArtifact := false
disablePublishing
)