This repository was archived by the owner on Jun 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
102 lines (85 loc) · 2.73 KB
/
build.gradle
File metadata and controls
102 lines (85 loc) · 2.73 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
plugins {
id 'java'
id 'checkstyle'
id 'pmd'
id 'jacoco'
id 'com.github.johnrengelman.shadow' version '5.2.0'
}
group 'no.unit.nva'
version '1.0-SNAPSHOT'
sourceCompatibility = JavaVersion.VERSION_11 // source-code version and must be <= targetCompatibility
targetCompatibility = JavaVersion.VERSION_11 // bytecode target version
repositories {
jcenter()
maven { url 'https://jitpack.io' }
}
dependencies {
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.9'
implementation 'org.apache.httpcomponents:httpclient:4.5.12'
implementation group: 'org.glassfish.jersey.core', name: 'jersey-common', version: '2.30.1'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.6'
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.29'
implementation group: 'org.jsoup', name: 'jsoup', version: '1.12.1'
implementation 'com.github.BIBSYSDEV:aws-build-tools:v1.5.5'
implementation 'com.amazonaws:aws-lambda-java-core:1.2.0'
testImplementation group: 'org.hamcrest', name: 'hamcrest', version: '2.2'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.5.2'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '3.2.4'
testImplementation 'com.github.stefanbirkner:system-rules:1.19.0'
testImplementation 'commons-io:commons-io:2.6'
shadowJar {
archiveClassifier.set('')
zip64 true
}
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
failFast = true
}
// We don't want a jar, just a fatJar
jar.enabled = false
project.tasks.build.dependsOn project.tasks.shadowJar
pmd {
ruleSetConfig = rootProject.resources.text.fromFile('config/pmd/ruleset.xml')
ruleSets = []
ignoreFailures = false
}
checkstyle {
configFile = rootProject.resources.text.fromFile('config/checkstyle/checkstyle.xml').asFile()
showViolations = true
}
tasks.withType(Checkstyle) {
reports {
xml.enabled false
html.enabled true
html.stylesheet rootProject.resources.text.fromFile('config/checkstyle/checkstyle-simple.xsl')
}
}
jacocoTestReport {
reports {
xml.enabled true
}
}
check.dependsOn jacocoTestCoverageVerification
jacocoTestCoverageVerification.dependsOn(jacocoTestReport)
jacocoTestCoverageVerification {
violationRules {
rule {
limit {
counter = 'METHOD'
value = 'COVEREDRATIO'
minimum = 1.000
}
}
rule {
limit {
counter = 'CLASS'
value = 'COVEREDRATIO'
minimum = 1.000
}
}
}
}