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
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user