-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
75 lines (60 loc) · 1.76 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
group 'com.liferay'
version '1.0.0-SNAPSHOT'
apply plugin: 'com.liferay.source.formatter'
apply plugin: 'findbugs'
apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'pmd'
sourceCompatibility = "1.8"
buildscript {
dependencies {
classpath group: 'com.liferay', name: 'com.liferay.gradle.plugins.source.formatter', version: '1.0.1'
}
repositories {
mavenCentral()
}
}
repositories {
mavenCentral()
}
dependencies {
compile group: "com.fasterxml.jackson.dataformat", name: "jackson-dataformat-xml", version: "2.6.3"
compile group: "org.apache.logging.log4j", name: "log4j-api", version: "2.8.2"
compile group: "org.apache.logging.log4j", name: "log4j-core", version: "2.8.2"
compile group: "org.codehaus.woodstox", name: "woodstox-core-asl", version: "4.4.1"
testCompile group: "junit", name: "junit", version: "4.12"
}
if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}
tasks.withType(FindBugs) {
reports {
xml.enabled false
html.enabled true
}
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled false
}
}
test {
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
exceptionFormat = 'full'
}
afterSuite { desc, result ->
if (!desc.parent) {
def output = "Results: ${result.resultType} (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)"
def startItem = '| ', endItem = ' |'
def repeatLength = startItem.length() + output.length() + endItem.length()
println('\n' + ('-' * repeatLength) + '\n' + startItem + output + endItem + '\n' + ('-' * repeatLength))
}
}
}
test.outputs.upToDateWhen {false}