Skip to content

Commit

Permalink
Moves the repository declarations to the settings.gradle file to help…
Browse files Browse the repository at this point in the history
… 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. (opensearch-project#4161)

Signed-off-by: David Venable <[email protected]>
  • Loading branch information
dlvenable authored Feb 21, 2024
1 parent 58fc576 commit 049732a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 23 deletions.
23 changes: 0 additions & 23 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand All @@ -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', {
Expand Down
13 changes: 13 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 049732a

Please sign in to comment.