Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Suppress publish actions for non library projects

(cherry picked from commit 0a16dfc)
  • Loading branch information...
commit 35fc85adcba597c81f7b9a651ae7382ec0cb0d01 1 parent 96be2a1
Matt Russell authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 project/Build.scala
9 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 =
Please sign in to comment.
Something went wrong with that request. Please try again.