-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
74 lines (64 loc) · 1.63 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
66
67
68
69
70
71
72
73
74
subprojects {
apply plugin: 'java'
apply plugin: 'jacoco'
// Static code analyzer
//apply plugin: 'findbugs'
// Another source analyzer
apply plugin: 'pmd'
// Coding Style enforcer
// Disable this for now. I need a valid configuration
// file in order to correctly enforce the style. I have no
// time at this point to figure that out.
// apply plugin: 'checkstyle'
repositories {
mavenCentral()
}
sourceCompatibility = 1.8
jar {
manifest.attributes provider: 'gradle'
}
version = '1.0'
dependencies {
// JSON Parser libraries
compile 'com.fasterxml.jackson.core:jackson-core:2.5.1'
compile 'com.fasterxml.jackson.core:jackson-databind:2.5.1'
compile 'com.fasterxml.jackson.core:jackson-annotations:2.5.1'
// Command Line Arguments parser library
compile 'commons-cli:commons-cli:1.2'
compile 'junit:junit:4.12'
testCompile 'junit:junit:4.+'
testCompile 'org.mockito:mockito-all:2.0.2-beta'
}
/*
findbugs {
toolVersion = "3.0.1"
sourceSets = [sourceSets.main]
ignoreFailures = true
reportsDir = file("$project.buildDir/findbugs")
effort = "max"
reportLevel = "low"
}
// Enable HTML reports
tasks.withType(FindBugs) {
source = fileTree('src/main/java/')
ignoreFailures = true
reports {
xml.enabled = false
//xml.withMessages = true
html.enabled = true
}
}
*/
pmd {
ruleSets = ["java-basic", "java-braces", "java-design"]
ignoreFailures = true
}
/*
// TODO: enable this once I get a valid config file. The one provided is just an
// example I took from somewhere.
checkstyle {
configFile = new File(rootDir, "config/checkstyle/checkstyle.xml")
ignoreFailures = true
}
*/
}