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
This commit is contained in:
Stéphane Nicoll
2024-10-09 16:29:09 +02:00
parent 28288eb8a3
commit 713e6d60e6
2 changed files with 11 additions and 1 deletions

View File

@@ -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

View File

@@ -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
}
}
}
}