-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
108 lines (90 loc) · 2.63 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
plugins {
id 'java'
id 'checkstyle'
id 'pmd'
id 'jacoco'
id 'com.github.spotbugs' version '5.0.12'
id 'io.freefair.lombok' version '6.5.1'
id 'org.springframework.boot' version '2.6.7'
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
}
bootJar {
archiveBaseName = 'alfred'
}
group = 'de.wasenweg'
sourceCompatibility = 17.0
targetCompatibility = 17.0
repositories {
mavenCentral()
google()
}
checkstyle {
toolVersion '10.3.4'
}
spotbugs {
effort = 'max'
omitVisitors = ['FindReturnRef']
}
spotbugsMain {
reports {
xml.enabled = false
html.enabled = true
}
}
spotbugsTest {
reports {
xml.enabled = false
html.enabled = true
}
}
pmd {
consoleOutput = true
toolVersion = '6.50.0'
incrementalAnalysis = true
}
pmdMain {
ruleSets = []
ruleSetConfig = resources.text.fromFile("config/pmd/pmd-main.xml")
}
pmdTest {
ruleSets = []
ruleSetConfig = resources.text.fromFile("config/pmd/pmd-test.xml")
}
jacocoTestReport {
reports {
xml.required = true
html.required = true
}
}
test {
useJUnitPlatform()
}
task unpack(type: Copy) {
dependsOn bootJar
from(zipTree(tasks.bootJar.outputs.files.singleFile))
into("build/dependency")
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-rest'
implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'com.google.api-client:google-api-client:1.30.9'
implementation 'com.google.http-client:google-http-client-apache-v2:1.35.0'
implementation 'org.springframework.security:spring-security-jwt:1.1.1.RELEASE'
implementation 'com.auth0:java-jwt:3.10.3'
implementation 'org.projectlombok:lombok'
spotbugsSlf4j 'org.slf4j:slf4j-simple:1.7.36'
testImplementation 'org.springframework.security:spring-security-test'
testImplementation 'org.glassfish.jersey.media:jersey-media-sse'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.mockito:mockito-junit-jupiter'
testImplementation 'de.flapdoodle.embed:de.flapdoodle.embed.mongo:3.4.11'
testImplementation 'io.projectreactor:reactor-test:3.4.17'
testImplementation 'org.mock-server:mockserver-netty:5.13.2'
testImplementation 'org.mock-server:mockserver-client-java:5.13.2'
runtimeOnly(project(':ui'))
}