-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
59 lines (51 loc) · 1.58 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
group 'PL4'
version '2.0.0'
apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'checkstyle'
apply plugin: 'pmd'
apply plugin: 'findbugs'
jacoco {
toolVersion = "0.8.0"
}
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
tasks.withType(FindBugs) {
reports {
xml.enabled = false
html.enabled = true
}
}
task fatJar(type: Jar, overwrite: true) {
manifest {
attributes 'Implementation-Title': 'Programming Life Consensus Jar',
'Implementation-Version': version,
'Main-Class': 'cli.Cli'
}
baseName = project.name
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12',
"org.mockito:mockito-core:2.+",
"org.assertj:assertj-core:3.+"
testCompile 'pl.pragmatists:JUnitParams:1.1.1'
testCompileOnly 'com.google.code.findbugs:annotations:3.0.1'
testCompileOnly 'com.google.code.findbugs:jsr305:3.0.1'
compileOnly "org.projectlombok:lombok:1.16.16"
compileOnly 'com.google.code.findbugs:annotations:3.0.1'
compileOnly 'com.google.code.findbugs:jsr305:3.0.1'
compile group: 'com.github.samtools', name: 'htsjdk', version: '2.1.1'
compile group: 'commons-cli', name: 'commons-cli', version: '1.4'
compile group: 'com.google.code.findbugs', name: 'annotations', version: '3.0.0'
}
sourceSets {
test {
java.srcDirs 'src/test/unit/java',
'src/test/integration/java',
'src/test/acceptance/java'
}
}