forked from lfrinaldi/template-tp-grupal
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
81 lines (68 loc) · 1.73 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
75
76
77
78
79
80
81
plugins {
id 'de.aaschmid.cpd' version '0.4'
}
group 'ar.fiuba.tdd.tp-tp-grupal'
version '1.0'
allprojects {
apply plugin: 'java'
repositories {
jcenter()
maven {
url "http://nexus-tecnicas7510.rhcloud.com/nexus/content/repositories/third-party"
}
}
}
subprojects {
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'maven'
sourceCompatibility = 1.8
targetCompatibility = 1.8
apply plugin: 'checkstyle'
checkstyle {
toolVersion = '6.7'
ignoreFailures = false
configFile = rootProject.file('config/checkstyle/checkstyle.xml')
}
apply plugin: 'findbugs'
findbugs {
toolVersion = "3.0.0"
sourceSets = [sourceSets.main]
effort = "max"
}
apply plugin: 'pmd'
pmd {
toolVersion = '4.3'
sourceSets = [sourceSets.main]
ruleSets = ["basic", "braces", "strings", "unusedcode"]
}
apply plugin: 'cpd'
cpd {
toolVersion = '5.3.0'
}
cpdCheck {
ignoreIdentifiers = true
ignoreLiterals = true
source = sourceSets.main.allJava
}
apply plugin: "jacoco"
jacoco {
toolVersion = "0.7.1.201405082137"
}
jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
html.destination "${buildDir}/jacocoHtml"
}
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
testCompile group: 'org.mockito', name: 'mockito-core', version: '1.9.+'
}
}
project(':server') {
plugins.withType(JavaBasePlugin) { // <- just required if 'java' plugin is applied within subproject
check.dependsOn(cpdCheck)
}
}