/
common.gradle
157 lines (136 loc) · 5.99 KB
/
common.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
apply plugin: 'base'
repositories {
mavenCentral()
}
ext {
imageRepo = "attx-dev"
imageRepoPort = "5000"
artifactRepoPort = "8081"
jenkinsPort = "49001"
unifiedViewsRepoURL = "http://maven.eea.sk/artifactory/simple/ext-releases-local"
// Setting Docker image tags
privateRepoTag = "latest"
testTag = "dev"
releaseTag = "2.0"
}
if (!project.hasProperty("registryURL")) {
ext.registryURL = "http://${imageRepo}:${imageRepoPort}"
}
if (!project.hasProperty("artifactRepoURL")) {
ext.artifactRepoURL = "http://${imageRepo}:${artifactRepoPort}"
}
if (!project.hasProperty("artifactRepoUser")) {
ext.artifactRepoUser = ""
}
if (!project.hasProperty("artifactRepoPassword")) {
ext.artifactRepoPassword = ""
}
// TO DO: Figure out a smarter way to do the switch of environments
if (!project.hasProperty("env") || project.env == "dev") {
ext.uvProv = "2.0-SNAPSHOT"
ext.gmAPI = "2.0-SNAPSHOT"
ext.gmFrame = "2.0-SNAPSHOT"
ext.indexing = "2.0-SNAPSHOT"
ext.provenanceS = "2.0-SNAPSHOT"
ext.ontologyS = "1.0-SNAPSHOT"
ext.replacedsPlugin = "1.0-SNAPSHOT"
ext.describedsPlugin = "1.0-SNAPSHOT"
ext.describeexternaldsPlugin = "1.0-SNAPSHOT"
ext.rmlservicePlugin = "1.0-SNAPSHOT"
ext.sirenAPIPlugin = "1.0-SNAPSHOT"
ext.oaipmhharvesterPlugin = "1.0-SNAPSHOT"
ext.selectdsPlugin = "1.0-SNAPSHOT"
ext.publishtoapiPlugin = "1.0-SNAPSHOT"
ext.constructPlugin = "1.0-SNAPSHOT"
ext.retrievedsPlugin = "1.0-SNAPSHOT"
ext.framingservicePlugin = "1.0-SNAPSHOT"
ext.ontologyservicePlugin = "1.0-SNAPSHOT"
ext.SHACLService = "1.0.0-SNAPSHOT"
ext.RMLService = "0.0.1-SNAPSHOT"
ext.imageBase = "${imageRepo}:${imageRepoPort}"
ext.imageFraming = "${privateRepoTag}"
ext.imageIndexing = "${privateRepoTag}"
ext.imageOntology = "${privateRepoTag}"
ext.imageES5 = "${privateRepoTag}"
ext.imageUVProv = "${privateRepoTag}"
ext.imageProvenance = "${privateRepoTag}"
ext.imageGM = "${privateRepoTag}"
ext.imageSirenAPIPlugin = "${privateRepoTag}"
ext.imageATTXDPUs = "${privateRepoTag}"
ext.imageFuseki = "${privateRepoTag}"
ext.imageActivemq = "${privateRepoTag}"
ext.imageRMLService = "${privateRepoTag}"
ext.imageSHACLService = "${privateRepoTag}"
} else if (project.env == "release"){
ext.uvProv = "2.0-SNAPSHOT"
ext.gmAPI = "2.0-SNAPSHOT"
ext.gmFrame = "2.0-SNAPSHOT"
ext.indexing = "2.0-SNAPSHOT"
ext.provenanceS = "2.0-SNAPSHOT"
ext.ontologyS = "1.0-SNAPSHOT"
ext.replacedsPlugin = "1.0-SNAPSHOT"
ext.describedsPlugin = "1.0-SNAPSHOT"
ext.describeexternaldsPlugin = "1.0-SNAPSHOT"
ext.rmlservicePlugin = "1.0-SNAPSHOT"
ext.oaipmhharvesterPlugin = "1.0-SNAPSHOT"
ext.selectdsPlugin = "1.0-SNAPSHOT"
ext.publishtoapiPlugin = "1.0-SNAPSHOT"
ext.constructPlugin = "1.0-SNAPSHOT"
ext.retrievedsPlugin = "1.0-SNAPSHOT"
ext.framingservicePlugin = "1.0-SNAPSHOT"
ext.ontologyservicePlugin = "1.0-SNAPSHOT"
ext.SHACLService = "1.0.0-SNAPSHOT"
ext.sirenAPIPlugin = "1.0-SNAPSHOT" // TO DO: remove
ext.RMLService = "0.0.1-SNAPSHOT"
ext.imageBase = "attxproject"
ext.imageFraming = "${releaseTag}"
ext.imageIndexing = "${releaseTag}"
ext.imageOntology = "${releaseTag}"
ext.imageES5 = "${releaseTag}"
ext.imageUVProv = "${releaseTag}"
ext.imageProvenance = "${releaseTag}"
ext.imageGM = "${releaseTag}"
ext.imageSirenAPIPlugin = "${releaseTag}"
ext.imageATTXDPUs = "${releaseTag}"
ext.imageFuseki = "${releaseTag}"
ext.imageActivemq = "${releaseTag}"
ext.imageRMLService = "${releaseTag}"
ext.imageSHACLService = "${releaseTag}"
} else if (project.env == "test"){
ext.uvProv = "2.0-SNAPSHOT"
ext.gmAPI = "2.0-SNAPSHOT"
ext.gmFrame = "2.0-SNAPSHOT"
ext.indexing = "2.0-SNAPSHOT"
ext.provenanceS = "2.0-SNAPSHOT"
ext.ontologyS = "1.0-SNAPSHOT"
ext.replacedsPlugin = "1.0-SNAPSHOT"
ext.describedsPlugin = "1.0-SNAPSHOT"
ext.describeexternaldsPlugin = "1.0-SNAPSHOT"
ext.rmlservicePlugin = "1.0-SNAPSHOT"
ext.oaipmhharvesterPlugin = "1.0-SNAPSHOT"
ext.selectdsPlugin = "1.0-SNAPSHOT"
ext.publishtoapiPlugin = "1.0-SNAPSHOT"
ext.constructPlugin = "1.0-SNAPSHOT"
ext.retrievedsPlugin = "1.0-SNAPSHOT"
ext.framingservicePlugin = "1.0-SNAPSHOT"
ext.ontologyservicePlugin = "1.0-SNAPSHOT"
ext.SHACLService = "1.0.0-SNAPSHOT"
ext.sirenAPIPlugin = "1.0-SNAPSHOT" // TO DO: remove
ext.RMLService = "0.0.1-SNAPSHOT"
ext.imageBase = "attxproject"
ext.imageFraming = "${testTag}"
ext.imageIndexing = "${testTag}"
ext.imageOntology = "${testTag}"
ext.imageES5 = "${testTag}"
ext.imageUVProv = "${testTag}"
ext.imageProvenance = "${testTag}"
ext.imageGM = "${testTag}"
ext.imageSirenAPIPlugin = "${testTag}"
ext.imageATTXDPUs = "${testTag}"
ext.imageFuseki = "${testTag}"
ext.imageActivemq = "${testTag}"
ext.imageRMLService = "${testTag}"
ext.imageSHACLService = "${testTag}"
} else {
throw new GradleException("Build project environment option not recognised.")
}