-
Notifications
You must be signed in to change notification settings - Fork 576
/
repos.gradle
44 lines (43 loc) · 1.54 KB
/
repos.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*******************************************************************************
* Copyright (c) 2019 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
/**
* Configure repositories.
* See: https://docs.gradle.org/current/userguide/declaring_repositories.html
*
* Prefer a configured Artifactory over Maven Central and IBM DHE.
* Do not fall back to Maven Central and IBM DHE when there are Artifactory outages.
*/
repositories {
if (isUsingArtifactory) {
maven {
credentials {
username userProps.getProperty("artifactory.download.user")
password userProps.getProperty("artifactory.download.token")
}
url ("https://" + userProps.getProperty("artifactory.download.server") + "/artifactory/wasliberty-open-liberty")
metadataSources {
mavenPom()
artifact()
}
}
} else {
mavenCentral()
maven {
url ("https://public.dhe.ibm.com/ibmdl/export/pub/software/olrepo/")
metadataSources {
mavenPom()
artifact()
}
}
}
}