From 1abfcc82ec7711effe8b96a6dd6e82462b92cf03 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Fri, 11 Dec 2020 12:30:49 +0100 Subject: [PATCH] docs: fix java, nuget endpoint->baseUrl packageRules Ref: #7912 #7959 --- docs/usage/java.md | 40 +++++++++++++++++++++------------------- docs/usage/nuget.md | 2 +- 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/docs/usage/java.md b/docs/usage/java.md index 6684e755ed..c24130d1e6 100644 --- a/docs/usage/java.md +++ b/docs/usage/java.md @@ -40,26 +40,28 @@ Renovate will search repositories for all `pom.xml` files and processes them ind Here is an example configuration to work with custom Artifactory servers using authentication: -``` +```json { - "maven": { - "enabled": true - }, - "hostRules": [{ - "hostType": "maven", - "endpoint": "https://artifactoryurl1/", - "username": "artifactoryusername", - "password": "artifactorypassword" - }, { - "hostType": "maven", - "endpoint": "https://artifactoryurl2/", - "username": "artifactoryusername", - "password": "artifactorypassword" - }], - "packageRules": [{ - "managers": ["maven"], - "registryUrls": ["https://artifactoryurl1/", "https://artifactoryurl2/"] - }] + "hostRules": [ + { + "hostType": "maven", + "baseUrl": "https://artifactoryurl1/", + "username": "artifactoryusername", + "password": "artifactorypassword" + }, + { + "hostType": "maven", + "baseUrl": "https://artifactoryurl2/", + "username": "artifactoryusername", + "password": "artifactorypassword" + } + ], + "packageRules": [ + { + "managers": ["maven"], + "registryUrls": ["https://artifactoryurl1/", "https://artifactoryurl2/"] + } + ] } ``` diff --git a/docs/usage/nuget.md b/docs/usage/nuget.md index 546c05ebc0..d9a5dd1fa4 100644 --- a/docs/usage/nuget.md +++ b/docs/usage/nuget.md @@ -65,7 +65,7 @@ Credentials for authenticated/private feeds can be provided via host rules in th "hostRules": [ { "hostType": "nuget", - "endpoint": "http://example1.com/nuget", + "baseUrl": "http://example1.com/nuget", "username": "root", "password": "p4$$w0rd" } -- GitLab