-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
157 lines (127 loc) · 4.19 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
plugins {
id 'java'
id 'org.springframework.boot' version '3.4.0'
id 'io.spring.dependency-management' version '1.1.5'
id 'org.ec4j.editorconfig' version "0.1.0"
id "org.sonarqube" version "6.0.1.5171"
id 'checkstyle'
id 'jacoco'
}
group = 'com.TnT'
version = '0.0.1-SNAPSHOT'
jar.enabled = false
java {
sourceCompatibility = '21'
}
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
configurations {
all {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
}
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
sonar {
properties {
property "sonar.projectKey", "YAPP-Github_25th-App-Team-2-BE"
property "sonar.organization", "yapp-github"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.coverage.jacoco.xmlReportPaths", "build/reports/jacoco/test/jacocoTestReport.xml"
property "sonar.exclusions", "**/*Application*.java, **/*Config*.java, **/*GlobalExceptionHandler.java"
property "sonar.java.coveragePlugin", "jacoco"
}
}
checkstyle {
toolVersion = "10.4"
maxWarnings = 0
configFile = file("${rootDir}/config/naver-checkstyle-rules.xml")
configProperties = ["suppressionFile": "${rootDir}/config/naver-checkstyle-suppressions.xml"]
}
check.dependsOn editorconfigCheck
jacoco {
toolVersion = "0.8.12"
}
test {
useJUnitPlatform()
finalizedBy 'jacocoTestReport'
}
jacocoTestReport {
dependsOn test
reports {
xml.required = true
html.required = true
}
afterEvaluate {
classDirectories.setFrom(
files(classDirectories.files.collect {
fileTree(dir: it, excludes: [
"**/*Application*.class",
"**/*Config*.class"
])
})
)
}
finalizedBy 'jacocoTestCoverageVerification'
}
jacocoTestCoverageVerification {
violationRules {
rule {
enabled = true
element = 'CLASS'
limit {
counter = 'LINE'
value = 'COVEREDRATIO'
minimum = 0.80
}
limit {
counter = 'METHOD'
value = 'COVEREDRATIO'
minimum = 0.80
}
excludes = [
'*.*Application',
'*.*Config',
'*.error.*'
]
}
}
}
editorconfig {
excludes = ['build']
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
implementation 'org.springframework.boot:spring-boot-starter-aop'
implementation 'org.springframework.boot:spring-boot-starter-webflux'
// TSID
implementation 'io.hypersistence:hypersistence-utils-hibernate-63:3.9.0'
// 애플 로그인 관련 라이브러리
implementation 'com.auth0:jwks-rsa:0.22.1'
implementation 'org.json:json:20231013'
implementation 'org.bouncycastle:bcprov-jdk18on:1.79'
// Redis
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
// Log4j2
// -DLog4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector -> VM for Async Logger
implementation 'org.springframework.boot:spring-boot-starter-log4j2'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.18.2'
implementation 'com.lmax:disruptor:4.0.0'
// Lombok
annotationProcessor 'org.projectlombok:lombok'
compileOnly 'org.projectlombok:lombok'
// MySQL
runtimeOnly 'com.mysql:mysql-connector-j'
// Swagger
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.7.0'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}