-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathAppConfig.groovy
53 lines (48 loc) · 1.37 KB
/
AppConfig.groovy
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
def toCompleteVersion() {
def completeVersion = new StringBuilder()
completeVersion << configuration.product.version.major
completeVersion << '.'
completeVersion << configuration.product.version.minor
completeVersion << '.'
completeVersion << configuration.product.version.micro
completeVersion << '.'
completeVersion << configuration.product.version.qualifier.alphaNumeric
completeVersion.toString()
}
configuration {
product {
name = 'Java8-Try'
vendor {
name = 'Dhaval Dalal'
}
//JBoss Versioning Convention
version {
major = 0 //number related to production release
minor = 8 //changes or feature additions
micro = 0 //patches and bug fixes
qualifier {
alphaNumeric = 'Alpha1' //Alpha# or Beta# or CR# or GA, or SP#
}
previous = ''
complete = toCompleteVersion()
}
distribution {
name = product.name + '-' + toCompleteVersion()
previousArchiveName = product.name + '-' + product.version.previous
jar {
name = product.name
manifest {
details = [
'Manifest-Version' : '1.0',
'Sealed' : 'true',
'Specification-Title' : product.name,
'Specification-Version': toCompleteVersion(),
'Specification-Vendor': product.vendor.name,
'Implementation-Version': toCompleteVersion(),
'Implementation-Vendor': product.vendor.name
]
}
}
}
}
}