-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
48 lines (42 loc) · 1 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
apply plugin: 'java'
apply plugin: 'application'
mainClassName = 'xyz.jadonfowler.phasebot.PhaseBot'
sourceSets {
main {
java {
srcDir 'src'
exclude '**/*Test.java'
}
resources {
srcDir 'res'
}
}
test {
java {
srcDir 'src'
include '**/*Test.java'
}
}
}
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'PhaseBot',
'Implementation-Version': '1.0.2',
'Main-Class': 'xyz.jadonfowler.phasebot.PhaseBot'
}
baseName = project.name + '-' + manifest.attributes['Implementation-Version']
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
repositories {
mavenCentral()
}
dependencies {
testCompile 'junit:junit:4.11'
compile fileTree(dir: 'lib', include: ['*.jar'])
}
test {
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
}
}