From d78ea3ae657dbfbfe02fce50c119ee33b39ad222 Mon Sep 17 00:00:00 2001 From: Matthew de Detrich Date: Mon, 5 Jun 2023 14:22:14 +0200 Subject: [PATCH] Cache snapshots to prevent overloading Apache Nexus repo --- project/Paradox.scala | 3 ++- project/plugins.sbt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/project/Paradox.scala b/project/Paradox.scala index 83e65813b9..6009138c06 100644 --- a/project/Paradox.scala +++ b/project/Paradox.scala @@ -71,8 +71,9 @@ object Paradox { "fault-tolerance-sample.html")) val themeSettings = Seq( - // allow access to snapshots for pekko-sbt-paradox + // TODO: allow access to snapshots for pekko-sbt-paradox, remove when pekko is released resolvers += Resolver.ApacheMavenSnapshotsRepo, + updateOptions := updateOptions.value.withLatestSnapshots(false), pekkoParadoxGithub := Some("https://github.com/apache/incubator-pekko")) // FIXME https://github.com/lightbend/paradox/issues/350 diff --git a/project/plugins.sbt b/project/plugins.sbt index f4bc6b2b14..2501be58a2 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -34,6 +34,7 @@ addSbtPlugin("com.github.sbt" % "sbt-license-report" % "1.5.0") // allow access to snapshots for pekko-sbt-paradox resolvers += Resolver.ApacheMavenSnapshotsRepo +updateOptions := updateOptions.value.withLatestSnapshots(false) // We have to deliberately use older versions of sbt-paradox because current Pekko sbt build // only loads on JDK 1.8 so we need to bring in older versions of parboiled which support JDK 1.8