From b18876b1f5a6671714bc5773c4e8883d132f8c7d Mon Sep 17 00:00:00 2001 From: Eugene Yokota Date: Fri, 27 Dec 2019 02:43:46 -0500 Subject: [PATCH] customize publishTo for nightlies --- build.sbt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build.sbt b/build.sbt index b7bde8af5..2bb66c9bd 100644 --- a/build.sbt +++ b/build.sbt @@ -1326,6 +1326,13 @@ def customCommands: Seq[Setting[_]] = Seq( } ) +ThisBuild / publishTo := { + val old = (ThisBuild / publishTo).value + sys.props.get("sbt.build.localmaven") match { + case Some(path) => Some(MavenCache("local-maven", file(path))) + case _ => old + } +} ThisBuild / whitesourceProduct := "Lightbend Reactive Platform" ThisBuild / whitesourceAggregateProjectName := { // note this can get detached on tag build etc