This is an automated email from the ASF dual-hosted git repository.
snazy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git
The following commit(s) were added to refs/heads/main by this push:
new 50ebd85644 Do not let Renovate query `repository.a.o/.../snapshots`
(#3811)
50ebd85644 is described below
commit 50ebd8564474c633c77a0800ac40d57eef45d16d
Author: Robert Stupp <[email protected]>
AuthorDate: Wed Feb 18 16:38:02 2026 +0100
Do not let Renovate query `repository.a.o/.../snapshots` (#3811)
See also https://github.com/renovatebot/renovate/discussions/41291
---
settings.gradle.kts | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/settings.gradle.kts b/settings.gradle.kts
index bec990713a..b40a7fbc72 100644
--- a/settings.gradle.kts
+++ b/settings.gradle.kts
@@ -128,10 +128,16 @@ dependencyResolutionManagement {
val useApacheSnapshots =
providers.gradleProperty("useApacheSnapshots").orNull?.toBoolean() ==
true
if (useApacheSnapshots) {
+ // This is a hack to let Renovate _not_ query the Apache snapshot
repository for all
+ // dependencies.
+ // See https://github.com/renovatebot/renovate/discussions/41291
+ fun configureIndirectForRenovate(asfSnap: MavenArtifactRepository) {
+ asfSnap.url =
uri("https://repository.apache.org/content/repositories/snapshots/")
+ asfSnap.mavenContent { snapshotsOnly() }
+ }
maven {
name = "ApacheSnapshots"
- url =
uri("https://repository.apache.org/content/repositories/snapshots/")
- mavenContent { snapshotsOnly() }
+ configureIndirectForRenovate(this)
}
}
gradlePluginPortal()