-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
102 lines (83 loc) · 2.72 KB
/
build.gradle
File metadata and controls
102 lines (83 loc) · 2.72 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 'com.diffplug.spotless' version '5.6.1'
id 'org.springframework.boot' version '2.4.2'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id 'jacoco'
id 'org.web3j' version '4.8.4'
}
group = 'it.sweven.blockcovid'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '14'
repositories {
mavenCentral()
}
dependencies {
// Spring dependencies
implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-hateoas'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springdoc:springdoc-openapi-ui:1.5.4'
// MongoDB Drivers
implementation 'org.mongodb:mongodb-driver-sync'
// reactivex reactive streams
implementation 'io.reactivex.rxjava2:rxjava'
implementation 'io.reactivex:rxjava-reactive-streams'
// lombok
compileOnly 'org.projectlombok:lombok:1.18.16'
annotationProcessor 'org.projectlombok:lombok:1.18.16'
// OpenAPI docs
implementation 'org.springdoc:springdoc-openapi-ui:1.5.4'
// Blockchain interaction
implementation 'org.web3j:core:4.5.6'
// iText PDF
implementation 'com.itextpdf:itext7-core:7.1.10'
// TESTS
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
testImplementation 'io.projectreactor:reactor-test'
testImplementation 'org.mockito:mockito-core:3.8.0'
}
test {
useJUnitPlatform()
}
spotless {
ratchetFrom 'origin/develop'
java {
toggleOffOn()
importOrder()
removeUnusedImports()
googleJavaFormat()
}
}
jacoco {
toolVersion = "0.8.6"
}
jacocoTestReport {
dependsOn test
afterEvaluate {
getClassDirectories().setFrom(classDirectories.files.collect {
fileTree(dir: it,
exclude: [
'**/it/sweven/blockcovid/configurations/*.class',
'**/it/sweven/blockcovid/*/exceptions/*.class',
'**/it/sweven/blockcovid/Server.class',
'**/org/web3j/**'
])
})
}
reports {
xml.enabled = true
}
}
test {
jacoco {
excludes = ['it.sweven.blockcovid.configurations.*',
'it.sweven.blockcovid.*.exceptions',
'it.sweven.blockcovid.Server',
'org.web3j.*']
}
}