From 58290f777e10370adb0863390be5f5e546b1efc7 Mon Sep 17 00:00:00 2001 From: Danno Ferrin Date: Wed, 17 Aug 2022 22:40:26 -0600 Subject: [PATCH] Gradle repository maintenance (#4273) Cleanup repository references and limit scope of non-mavenCentral repositories. Signed-off-by: Danno Ferrin --- build.gradle | 22 +++++++++++++++++----- settings.gradle | 10 ++++++++-- 2 files changed, 25 insertions(+), 7 deletions(-) diff --git a/build.gradle b/build.gradle index 356a7290114..a4e5651b89f 100644 --- a/build.gradle +++ b/build.gradle @@ -103,14 +103,26 @@ allprojects { targetCompatibility = 11 repositories { + maven { + url 'https://hyperledger.jfrog.io/hyperledger/besu-maven' + content { includeGroupByRegex('org\\.hyperledger\\..*') } + } + maven { + url 'https://artifacts.consensys.net/public/maven/maven/' + content { includeGroupByRegex('tech\\.pegasys\\..*') } + } + maven { + url 'https://dl.cloudsmith.io/public/consensys/quorum-mainnet-launcher/maven/' + content { includeGroupByRegex('net\\.consensys\\..*') } + } + maven { + url 'https://splunk.jfrog.io/splunk/ext-releases-local' + content { includeGroupByRegex('com\\.splunk\\..*') } + } mavenCentral() - maven { url "https://hyperledger.jfrog.io/hyperledger/besu-maven" } - maven { url "https://artifacts.consensys.net/public/maven/maven/" } - maven { url "https://splunk.jfrog.io/splunk/ext-releases-local" } - maven { url "https://dl.cloudsmith.io/public/consensys/quorum-mainnet-launcher/maven/"} } - dependencies { errorprone "com.google.errorprone:error_prone_core" } + dependencies { errorprone 'com.google.errorprone:error_prone_core' } apply plugin: 'com.diffplug.spotless' spotless { diff --git a/settings.gradle b/settings.gradle index 86346e03959..68ad95f90dd 100644 --- a/settings.gradle +++ b/settings.gradle @@ -16,13 +16,19 @@ pluginManagement { repositories { - gradlePluginPortal() /* * Temporary repository to host the improved version of the * com.github.hierynomus.license plugin. Can be removed when an * official version with the fix is release upstream */ - maven { url = uri("https://raw.githubusercontent.com/ConsenSys/license-gradle-plugin-fix-artifacts/main/") } + maven { + url = uri('https://raw.githubusercontent.com/ConsenSys/license-gradle-plugin-fix-artifacts/main/') + content { + includeGroup('com.github.hierynomus.license') + includeGroup('com.hierynomus.gradle.plugins') + } + } + gradlePluginPortal() } }