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