-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.gradle
64 lines (54 loc) · 1.26 KB
/
build.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
buildscript {
repositories {
mavenCentral()
}
}
apply plugin: 'idea'
apply plugin: 'distribution'
task wrapper(type: Wrapper) {
gradleVersion = '3.4.1'
}
ext.src = 'src/main/mpack/'
ext.mpack = 'mpack.json'
ext.repostemplate = 'src/main/template/repos/repoinfo.xml'
ext.reposinfo555 = 'custom-services/SOLR/5.5.5/repos/'
ext.reposinfo662 = 'custom-services/SOLR/6.6.2/repos/'
ext.reposinfo740 = 'custom-services/SOLR/7.4.0/repos/'
distributions {
main {
contents {
baseName = packageName
from { src }
from { src + mpack }
filter { line ->
line.replace("{VERSION}", "${version}")
}
into(reposinfo555) {
from { repostemplate }
filter { line ->
line.replace("{REPOID}", "${repoid555}")
}
}
into(reposinfo662) {
from { repostemplate }
filter { line ->
line.replace("{REPOID}", "${repoid662}")
}
}
into(reposinfo740) {
from { repostemplate }
filter { line ->
line.replace("{REPOID}", "${repoid740}")
}
}
}
}
}
distTar {
destinationDir = file(buildDir)
appendix = 'mpack'
compression = Compression.GZIP
extension = 'tar.gz'
}
task makePackage(dependsOn: [clean, distTar]) {
}