From 713e6d60e6f5121c4c8d12e06f05a7693b3976ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Wed, 9 Oct 2024 16:29:09 +0200 Subject: [PATCH] Configure authentication for https://repo.spring.io/plugins-release/ Repositories on repo.spring.io requires to be authenticated. This commit configures the SPRING_REPOSITORY_USERNAME and SPRING_REPOSITORY_PASSWORD properties accordingly. Closes gh-1807 --- README.md | 3 +++ settings.gradle | 9 ++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e04d28ca..e750c0cf 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,9 @@ Compile and test, build all jars, distribution zips and docs: ./gradlew build ```` +Access to https://repo.spring.io/plugins-release requires authetication. +The `SPRING_REPOSITORY_USERNAME` and `SPRING_REPOSITORY_PASSWORD` environment variables should be exposed to the build. + Install into your local Maven repository: ```` ./gradlew install diff --git a/settings.gradle b/settings.gradle index c1c39e1d..282bceb2 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,7 +1,14 @@ pluginManagement { repositories { gradlePluginPortal() - maven { url 'https://repo.spring.io/plugins-release' } + maven { + name "spring-plugins" + url "https://repo.spring.io/plugins-release/" + credentials { + username System.env.SPRING_REPOSITORY_USERNAME + password System.env.SPRING_REPOSITORY_PASSWORD + } + } } }