-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
97 lines (80 loc) · 2.55 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
plugins {
id 'java'
id 'org.springframework.boot' version '3.2.3'
id 'io.spring.dependency-management' version '1.1.4'
id 'jacoco'
}
group = 'com.tiketeer'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = '21'
}
jacoco {
toolVersion = "0.8.9"
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
// Default
implementation 'org.springframework.boot:spring-boot-starter-web'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation 'org.springframework.boot:spring-boot-starter-cache'
// Security
implementation 'org.springframework.boot:spring-boot-starter-security'
testImplementation 'org.springframework.security:spring-security-test'
// DB
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
runtimeOnly 'com.mysql:mysql-connector-j'
testRuntimeOnly 'com.h2database:h2'
implementation 'org.flywaydb:flyway-core'
implementation 'org.flywaydb:flyway-mysql'
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
implementation 'io.lettuce:lettuce-core:6.3.2.RELEASE'
implementation 'org.redisson:redisson-spring-boot-starter:3.17.0'
implementation group: 'it.ozimov', name: 'embedded-redis', version: '0.7.1'
// Util
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
ext {
JJWT_VERSION = "0.12.5"
}
implementation "io.jsonwebtoken:jjwt-api:${JJWT_VERSION}"
runtimeOnly "io.jsonwebtoken:jjwt-gson:${JJWT_VERSION}"
runtimeOnly "io.jsonwebtoken:jjwt-impl:${JJWT_VERSION}"
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation("org.springframework.retry:spring-retry")
implementation("org.springframework:spring-aspects")
// ETC
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0'
// OBSERVABILITY
implementation 'io.micrometer:micrometer-registry-prometheus:1.11.3'
implementation 'io.opentelemetry:opentelemetry-api'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
// MAIL
implementation 'org.springframework.boot:spring-boot-starter-mail'
// AWS
implementation 'software.amazon.awssdk:s3:2.25.21'
}
tasks.named('test') {
useJUnitPlatform()
}
tasks.named('test') {
useJUnitPlatform()
finalizedBy jacocoTestReport
}
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
reports {
xml.required = true
html.required = false
csv.required = false
}
}