-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
80 lines (66 loc) · 1.72 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
plugins {
id 'java-library'
id 'jacoco'
id 'maven'
// community plugins
id 'com.github.ben-manes.versions' version '0.15.0'
id 'com.diffplug.gradle.spotless' version '3.4.0'
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
description = """Superunknown"""
version = '1.0'
repositories {
mavenLocal()
mavenCentral()
maven { url "https://jitpack.io" }
}
dependencies {
api (
'com.google.code.gson:gson:2.8.1',
'ch.qos.logback:logback-classic:1.2.3',
'ch.qos.logback:logback-core:1.2.3',
'org.slf4j:slf4j-api:1.7.25',
'org.glassfish.jersey.containers:jersey-container-netty-http:2.26-b06',
)
implementation (
'org.glassfish.jersey.inject:jersey-hk2:2.26-b06',
'org.projectlombok:lombok:1.16.16',
)
testCompile(
'junit:junit:4.12',
'org.assertj:assertj-core:3.8.0',
'org.mockito:mockito-all:2.0.2-beta'
)
}
task wrapper(type: Wrapper) {
gradleVersion = '4.0'
}
test {
reports.html.enabled = true
reports.junitXml.enabled = false
jvmArgs "-XX:-UseSplitVerifier" // This option is to avoid a VerifyError regards cobertura instrumentation
}
jacocoTestReport {
reports {
xml.enabled false
csv.enabled false
html.enabled true
}
}
javadoc {
options {
doclet = "com.visural.doclets.markdown.standard.Standard"
docletpath = [
rootProject.file('./resources/MarkdownDoclet-3.0.jar')
]
// http://sensemaya.org/maya/2009/07/10/making-javadoc-more-legible
stylesheetFile = rootProject.file('./resources/javadoc-stylesheet.css')
}
}
spotless {
java {
importOrderFile rootProject.file('./resources/importorder')
eclipseFormatFile rootProject.file('./resources/eclipseformat.xml')
}
}