Skip to content

Commit

Permalink
better way to disable publishing subprojects
Browse files Browse the repository at this point in the history
  • Loading branch information
haifengl committed Feb 19, 2016
1 parent 7409328 commit 4b0f039
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
3 changes: 0 additions & 3 deletions benchmark/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,3 @@ crossPaths := true
autoScalaLibrary := true

mainClass in Compile := Some("smile.benchmark.Benchmark")

// Don't publish to central Maven repo
publishArtifact := false
10 changes: 7 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ lazy val commonSettings = Seq(
}
)

lazy val nonPubishSettings = commonSettings ++ Seq(
publish := { }
)

lazy val root = project.in(file(".")).settings(commonSettings: _*)
.aggregate(core, data, math, graph, plot, interpolation, nlp, demo, benchmark, scala, shell)

Expand All @@ -43,10 +47,10 @@ lazy val nlp = project.in(file("nlp")).settings(commonSettings: _*).dependsOn(co

lazy val plot = project.in(file("plot")).settings(commonSettings: _*).dependsOn(core)

lazy val demo = project.in(file("demo")).settings(commonSettings: _*).dependsOn(core, interpolation, plot)
lazy val demo = project.in(file("demo")).settings(nonPubishSettings: _*).dependsOn(core, interpolation, plot)

lazy val benchmark = project.in(file("benchmark")).settings(commonSettings: _*).dependsOn(core, scala)
lazy val benchmark = project.in(file("benchmark")).settings(nonPubishSettings: _*).dependsOn(core, scala)

lazy val scala = project.in(file("scala")).settings(commonSettings: _*).dependsOn(interpolation, nlp, plot)

lazy val shell = project.in(file("shell")).settings(commonSettings: _*).dependsOn(benchmark, demo, scala)
lazy val shell = project.in(file("shell")).settings(nonPubishSettings: _*).dependsOn(benchmark, demo, scala)
3 changes: 0 additions & 3 deletions demo/build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
name := "smile-demo"

mainClass in Compile := Some("smile.demo.SmileDemo")

// Don't publish to central Maven repo
publishArtifact := false
3 changes: 0 additions & 3 deletions shell/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ autoScalaLibrary := true

mainClass in Compile := Some("smile.shell.Main")

// Don't publish to central Maven repo
publishArtifact := false

// SBT native packager
enablePlugins(JavaAppPackaging)

Expand Down

0 comments on commit 4b0f039

Please sign in to comment.