forked from demilich1/metastone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
61 lines (52 loc) · 1.53 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
apply plugin: 'application'
apply plugin: 'eclipse'
apply from: 'javafx.plugin'
sourceCompatibility = 1.8
version = '0.9.7'
mainClassName = "net.demilich.metastone.MetaStone"
jar {
manifest {
attributes 'Implementation-Title': 'MetaStone',
'Implementation-Version': version
}
}
repositories {
mavenCentral()
}
dependencies {
compile files('lib/nitty-gritty-mvc.jar', 'lib/controlsfx-8.40.10-20151003.010657-492.jar')
compile group: 'com.google.code.gson', name: 'gson', version: '2.3.1'
compile group: 'ch.qos.logback', name: 'logback-core', version: '1.1.3'
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.1.3'
compile group: 'commons-io', name: 'commons-io', version: '2.4'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.4'
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5'
testCompile group: 'org.testng', name: 'testng', version: '6.+'
}
task copyCards << {
mkdir('src/deploy/resources/cards')
copy {
from 'cards'
into('src/deploy/resources/cards')
}
}
task copyDecks << {
mkdir('src/deploy/resources/decks')
copy {
from 'decks'
into('src/deploy/resources/decks')
}
}
assemble.dependsOn copyDecks
assemble.dependsOn copyCards
assemble.doLast {
println 'Cleaning up...'
delete('src/deploy/resources')
}
javafx {
mainClass = 'net.demilich.metastone.MetaStone'
}
test {
// enable TestNG support (default is JUnit)
useTestNG()
}