-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
65 lines (54 loc) · 1.15 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
65
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'application'
apply plugin: 'eclipse'
sourceCompatibility = 1.7
mainClassName = 'chesspresso.game.view.HTMLGameBrowser'
defaultTasks 'build'
def addDependencies(configurationName, depInfo) {
depInfo.each {
def group = it.key
def nameToInfoMap = it.value
nameToInfoMap.each {
def name = it.key
def info = it.value
dependencies.add(configurationName, [group: group, name: name] + info)
}
}
}
jar {
manifest {
attributes 'Implementation-Title': 'Chesspresso', 'Implementation-Version': version
}
}
repositories {
mavenCentral()
}
def compileDepInfo = [
'ch.qos.logback' : [
'logback-classic' : [version: '1.0.13']
],
'org.apache.commons' : [
'commons-lang3' : [version: '3.1']
],
'org.freemarker' : [
'freemarker' : [version: '2.3.20']
]
];
def testDepInfo = [
'junit' : [
'junit' : [version: '4.+']
]
];
addDependencies('compile', compileDepInfo)
addDependencies('testCompile', testDepInfo)
test {
systemProperties 'property': 'value'
}
uploadArchives {
repositories {
flatDir {
dirs 'repos'
}
}
}