You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by yh...@apache.org on 2024/12/13 14:13:59 UTC
(beam) branch master updated: Fix Apache snapshot repo usage (#33370)
This is an automated email from the ASF dual-hosted git repository.
yhu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new 994d2f0cad0 Fix Apache snapshot repo usage (#33370)
994d2f0cad0 is described below
commit 994d2f0cad0a4e7d2511c518af6d4f5a9696cd21
Author: Doroszlai, Attila <64...@users.noreply.github.com>
AuthorDate: Fri Dec 13 15:13:51 2024 +0100
Fix Apache snapshot repo usage (#33370)
* limit Apache snapshot repo content type
* move up Confluent repo
---
.../groovy/org/apache/beam/gradle/Repositories.groovy | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
diff --git a/buildSrc/src/main/groovy/org/apache/beam/gradle/Repositories.groovy b/buildSrc/src/main/groovy/org/apache/beam/gradle/Repositories.groovy
index 52cbbd15c35..58ec64a0add 100644
--- a/buildSrc/src/main/groovy/org/apache/beam/gradle/Repositories.groovy
+++ b/buildSrc/src/main/groovy/org/apache/beam/gradle/Repositories.groovy
@@ -39,20 +39,25 @@ class Repositories {
mavenCentral()
mavenLocal()
+ // For Confluent Kafka dependencies
+ maven {
+ url "https://packages.confluent.io/maven/"
+ content { includeGroup "io.confluent" }
+ }
+
// Release staging repository
maven { url "https://oss.sonatype.org/content/repositories/staging/" }
// Apache nightly snapshots
- maven { url "https://repository.apache.org/snapshots" }
+ maven {
+ url "https://repository.apache.org/snapshots"
+ mavenContent {
+ snapshotsOnly()
+ }
+ }
// Apache release snapshots
maven { url "https://repository.apache.org/content/repositories/releases" }
-
- // For Confluent Kafka dependencies
- maven {
- url "https://packages.confluent.io/maven/"
- content { includeGroup "io.confluent" }
- }
}
// Apply a plugin which provides the 'updateOfflineRepository' task that creates an offline