forked from oyachai/HearthSim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
49 lines (42 loc) · 1.28 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
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'jacoco'
apply plugin: 'checkstyle'
checkstyle {
toolVersion = "6.5"
}
apply plugin: 'pmd'
apply plugin: "groovy"
sourceSets.main.java.srcDirs = []
sourceSets.main.groovy.srcDir 'src/main/java'
task(runGui, dependsOn: 'classes', type: JavaExec) {
main = 'com.hearthsim.gui.HearthSim'
classpath = sourceSets.main.runtimeClasspath
}
task(runSim, dependsOn: 'classes', type: JavaExec) {
main = 'com.hearthsim.HearthSimMain'
args = [hsparam]
classpath = sourceSets.main.runtimeClasspath
}
repositories {
jcenter()
maven { url "http://oss.sonatype.org/content/repositories/snapshots/" }
}
dependencies {
compile 'ch.qos.logback:logback-classic:1.1.2'
compile 'org.codehaus.groovy:groovy-all:2.4.3'
compile 'org.apache.commons:commons-math3:3.3'
compile 'org.json:json:20140107'
testCompile 'junit:junit:4.11'
testCompile "org.spockframework:spock-core:1.0-groovy-2.4"
}
task runSimJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'HearthSim',
'Implementation-Version': '0.0',
'Main-Class': 'com.hearthsim.HearthSimMain'
}
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}