forked from ome/omero-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.gradle
44 lines (40 loc) · 1.35 KB
/
init.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
// init.gradle
/**
* The pluginManagement {} block may only appear in either the settings.gradle file,
* where it must be the first block in the file, or in an Initialization Script.
* https://docs.gradle.org/current/userguide/plugins.html
*/
settingsEvaluated { settings ->
settings.pluginManagement {
resolutionStrategy {}
repositories {
// Remove openmicroscopy artifactory repos
all { ArtifactRepository repo ->
if (!(repo instanceof MavenArtifactRepository) ||
repo.url.toString().contains("artifacts.openmicroscopy.org")) {
remove repo
}
}
maven {
name "gitlab"
url "https://gitlab.com/api/v4/projects/11093498/packages/maven"
}
}
}
}
allprojects {
repositories {
// Remove openmicroscopy artifactory repos
all { ArtifactRepository repo ->
if (!(repo instanceof MavenArtifactRepository) ||
repo.url.toString().contains("artifacts.openmicroscopy.org")) {
project.logger.lifecycle "Repository ${repo.url} removed."
remove repo
}
}
maven {
name "gitlab"
url "https://gitlab.com/api/v4/projects/11093498/packages/maven"
}
}
}