Permalink
Browse files

Suppress publish actions for non library projects

(cherry picked from commit 0a16dfc)
  • Loading branch information...
1 parent 96be2a1 commit 35fc85adcba597c81f7b9a651ae7382ec0cb0d01 @mdr mdr committed May 7, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 project/Build.scala
View
@@ -31,7 +31,10 @@ object ScalariformBuild extends Build {
lazy val subprojectSettings = commonSettings ++ Seq(
ScalariformKeys.preferences <<= baseDirectory.apply(dir PreferencesImporterExporter.loadPreferences((dir / ".." / "formatterPreferences.properties").getPath)))
- lazy val root: Project = Project("root", file("."), settings = commonSettings) aggregate (scalariform, cli, misc)
+ lazy val root: Project = Project("root", file("."), settings = commonSettings ++ Seq(
+ publish := (),
+ publishLocal := ()
+ )) aggregate (scalariform, cli, misc)
lazy val scalariform: Project = Project("scalariform", file("scalariform"), settings = subprojectSettings ++
Seq(
@@ -56,12 +59,16 @@ object ScalariformBuild extends Build {
Seq(
libraryDependencies += "commons-io" % "commons-io" % "1.4",
mainClass in (Compile, packageBin) := Some("scalariform.commandline.Main"),
+ publish := (),
+ publishLocal := (),
artifactName in SbtOneJar.oneJar := { (config: String, module: ModuleID, artifact: Artifact) "scalariform.jar" })) dependsOn (scalariform)
lazy val misc: Project = Project("misc", file("misc"), settings = subprojectSettings ++
Seq(
libraryDependencies += "commons-io" % "commons-io" % "1.4",
libraryDependencies += "com.miglayout" % "miglayout" % "3.7.4",
+ publish := (),
+ publishLocal := (),
mainClass in (Compile, run) := Some("scalariform.gui.Main"))) dependsOn (scalariform, cli)
def pomExtraXml =

0 comments on commit 35fc85a

Please sign in to comment.