From 049732a6ce792e1ae6c090525d9c46f1d78d9cfe Mon Sep 17 00:00:00 2001 From: David Venable Date: Wed, 21 Feb 2024 12:35:19 -0800 Subject: [PATCH] Moves the repository declarations to the settings.gradle file to help maintain in one place. Also limit the groups used by the JitPack Maven repository to the one dependency that is needed. This way, we use Maven Central over it. (#4161) Signed-off-by: David Venable --- build.gradle | 23 ----------------------- settings.gradle | 13 +++++++++++++ 2 files changed, 13 insertions(+), 23 deletions(-) diff --git a/build.gradle b/build.gradle index e8514faead..70ce138b99 100644 --- a/build.gradle +++ b/build.gradle @@ -5,21 +5,6 @@ import com.github.jk1.license.render.TextReportRenderer buildscript { - repositories { - mavenCentral() { - metadataSources { - mavenPom() - ignoreGradleMetadataRedirection() - } - } - maven { - url 'https://plugins.gradle.org/m2/' - metadataSources { - mavenPom() - ignoreGradleMetadataRedirection() - } - } - } dependencies { classpath 'com.github.jk1:gradle-license-report:2.1' } @@ -41,14 +26,6 @@ allprojects { ext { mavenPublicationRootFile = file("${rootProject.buildDir}/m2") } - - repositories { - mavenCentral() - maven { url 'https://jitpack.io' } - maven { - url 'https://packages.confluent.io/maven/' - } - } spotless { format 'markdown', { diff --git a/settings.gradle b/settings.gradle index 8edc547186..d1d77074ee 100644 --- a/settings.gradle +++ b/settings.gradle @@ -10,6 +10,19 @@ pluginManagement { } } +dependencyResolutionManagement { + repositories { + mavenCentral() + maven { + url 'https://packages.confluent.io/maven/' + } + maven { + url 'https://jitpack.io' + content { includeGroup 'com.github.fge' } + } + } +} + rootProject.name = 'opensearch-data-prepper' dependencyResolutionManagement {