forked from yasserg/crawler4j
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
83 lines (68 loc) · 1.92 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
82
83
plugins {
id 'com.github.johnrengelman.shadow' version '4.0.4' apply false
}
wrapper {
gradleVersion = '5.2.1'
distributionType = Wrapper.DistributionType.ALL
}
allprojects {
apply plugin: 'idea'
apply plugin: 'eclipse'
group = 'edu.uci.ics'
version = '4.5.0-SNAPSHOT'
}
subprojects {
apply plugin: 'java'
apply plugin: 'checkstyle'
repositories {
mavenCentral()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
options.fork = true
options.incremental = true
}
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
checkstyle {
toolVersion = '8.17'
configFile = new File(rootDir, 'config/checkstyle.xml')
}
tasks.withType(Checkstyle) {
reports {
xml.enabled false
html.enabled false
}
}
task checkstyle {
dependsOn checkstyleMain
dependsOn checkstyleTest
}
def projectName = it.name
tasks.withType(Test) {
testLogging {
exceptionFormat 'full'
testLogging { events 'skipped', 'failed', 'standardError' }
afterSuite { desc, result ->
if (!desc.parent) { // will match the outermost suite
print "Results: ${result.resultType} (${result.testCount} tests,"
print " ${result.successfulTestCount} successes,"
print " ${result.failedTestCount} failures,"
println " ${result.skippedTestCount} skipped)"
}
}
}
beforeTest { descriptor ->
logger.lifecycle("Starting Test: " + descriptor)
}
reports {
junitXml.enabled = false
html.enabled = true
}
outputs.upToDateWhen { false }
jvmArgs '-Xmx2g'
}
}