-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsettings.gradle
66 lines (60 loc) · 2.34 KB
/
settings.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
rootProject.name = 'docker-alfresco'
include ':tomcat-base'
include ':tomcat-base:tomcat-embedded-9'
include ':tomcat-base:tomcat-embedded-10'
include ':1alfresco-skeleton'
include ':1alfresco-skeleton:7.0'
include ':1alfresco-skeleton:7.1'
include ':1alfresco-skeleton:7.2'
include ':1alfresco-skeleton:7.3'
include ':1alfresco-skeleton:7.4'
include ':1alfresco-skeleton:23.1'
include ':1alfresco-skeleton:23.2'
include ':2repository'
include ':1share-skeleton'
include ':1share-skeleton:7.0'
include ':1share-skeleton:7.1'
include ':1share-skeleton:7.2'
include ':1share-skeleton:7.3'
include ':1share-skeleton:7.4'
include ':1share-skeleton:23.1'
include ':1share-skeleton:23.2'
include ':2share'
def includeRepoProject(String flavor, String version) {
def projectName = ":2repository:${flavor}-$version"
include projectName
project(projectName).projectDir = file("2repository/${version.substring(0,getSecondDotPosition(version))}/${flavor}-$version")
}
def includeShareProject(String flavor, String version) {
def projectName = ":2share:${flavor}-$version"
include projectName
project(projectName).projectDir = file("2share/${version.substring(0,getSecondDotPosition(version))}/${flavor}-$version")
}
def getSecondDotPosition(String version) {
return version.split(/\./)[0].length() + 1 + version.split(/\./)[1].length()
}
if (includeCommunity == 'true') {
includeRepoProject('community', '7.0.0')
includeRepoProject('community', '7.1.1')
includeRepoProject('community', '7.2.0')
includeRepoProject('community', '7.3.0')
includeRepoProject('community', '7.4.0')
includeRepoProject('community', '23.1.0')
includeRepoProject('community', '23.2.0')
includeShareProject('community', '7.0.1')
includeShareProject('community', '7.1.0')
includeShareProject('community', '7.2.1')
includeShareProject('community', '7.3.0')
includeShareProject('community', '7.4.0')
includeShareProject('community', '23.1.0')
includeShareProject('community', '23.2.0')
}
if (includeEnterprise == 'true') {
includeRepoProject('enterprise', '7.0.1')
includeRepoProject('enterprise', '7.1.0')
includeRepoProject('enterprise', '7.2.0')
includeRepoProject('enterprise', '7.3.0')
includeRepoProject('enterprise', '7.4.0')
includeRepoProject('enterprise', '23.1.0')
includeRepoProject('enterprise', '23.2.0')
}