Skip to content

Commit

Permalink
Allow local publication
Browse files Browse the repository at this point in the history
  • Loading branch information
newca12 committed May 3, 2015
1 parent 16becc4 commit c51fe99
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,19 @@ lazy val commonSettings = Seq(
.setPreference(DoubleIndentClassDeclaration, true)
.setPreference(SpaceInsideParentheses, true))

lazy val publishingSettings = Seq(
publishMavenStyle := true,
publishTo := Some(Resolver.file("file", new File("PATH_TO_LOCAL_newca12.github.com/snapshots"))),
publishArtifact in Test := false,
pomIncludeRepository := { _ => false })

lazy val noPublishingSettings = Seq(
publishArtifact := false,
publishTo := Some(Resolver.file("Unused transient repository", file("target/unusedrepo"))))

lazy val root = (project in file(".")).
settings(commonSettings: _*).
settings(publishingSettings: _*).
disablePlugins(JUnitXmlReportPlugin).
settings(
name := "gapt",
Expand Down

0 comments on commit c51fe99

Please sign in to comment.