-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
182 lines (148 loc) · 5.13 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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
buildscript {
ext {
queryDslVersion = "5.0.0"
}
}
plugins {
id 'java'
id 'org.springframework.boot' version '3.2.2'
id 'io.spring.dependency-management' version '1.1.4'
id "org.asciidoctor.jvm.convert" version "3.3.2"
id 'jacoco'
}
group = 'com.yello'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
ext {
snippetsDir = file('build/generated-snippets')
}
test {
useJUnitPlatform()
finalizedBy 'jacocoTestReport'
outputs.dir snippetsDir
}
configurations {
asciidoctorExt
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
// Properties Migrator
runtimeOnly "org.springframework.boot:spring-boot-properties-migrator"
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
// Repositories
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.amqp:spring-rabbit:3.1.1'
implementation 'org.hibernate:hibernate-core:6.4.4.Final'
implementation 'mysql:mysql-connector-java:8.0.33'
runtimeOnly 'com.h2database:h2'
runtimeOnly 'com.mysql:mysql-connector-j:8.2.0'
// Validations
implementation 'org.springframework.boot:spring-boot-starter-validation'
// JWT
implementation group: 'io.jsonwebtoken', name: 'jjwt-api', version: '0.11.2'
implementation group: 'io.jsonwebtoken', name: 'jjwt-impl', version: '0.11.2'
implementation group: 'io.jsonwebtoken', name: 'jjwt-jackson', version: '0.11.2'
// Http
implementation 'org.springframework.boot:spring-boot-starter-webflux'
// Security
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'io.netty:netty-resolver-dns-native-macos:4.1.79.Final:osx-aarch_64'
// FCM
implementation 'com.google.firebase:firebase-admin:9.2.0'
// slack-webhook
implementation "com.slack.api:slack-api-client:1.38.3"
// google play android developer api
implementation 'com.google.apis:google-api-services-androidpublisher:v3-rev20211125-1.32.1'
implementation "com.google.api-client:google-api-client:1.33.0"
// gson
implementation 'com.google.code.gson:gson:2.10.1'
// Testing
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.4.2'
asciidoctorExt 'org.springframework.restdocs:spring-restdocs-asciidoctor'
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'
testImplementation 'org.springframework.security:spring-security-test'
testImplementation 'org.mockito:mockito-inline:5.2.0'
testImplementation 'org.springframework.batch:spring-batch-test'
// jwt decode
implementation 'org.bouncycastle:bcprov-jdk15on:1.69'
implementation 'io.jsonwebtoken:jjwt-api:0.11.2'
implementation 'io.jsonwebtoken:jjwt-impl:0.11.2'
implementation 'io.jsonwebtoken:jjwt-jackson:0.11.2'
// AOP
implementation 'org.springframework.boot:spring-boot-starter-aop'
// querydsl
implementation "com.querydsl:querydsl-core:${queryDslVersion}"
annotationProcessor "com.querydsl:querydsl-apt:${queryDslVersion}:jakarta"
implementation "com.querydsl:querydsl-jpa:${queryDslVersion}:jakarta"
annotationProcessor "jakarta.persistence:jakarta.persistence-api"
implementation "jakarta.annotation:jakarta.annotation-api"
implementation "com.querydsl:querydsl-codegen:${queryDslVersion}"
// tink
implementation 'com.google.crypto.tink:tink-android:1.4.0-rc1'
implementation 'com.google.crypto.tink:apps-rewardedads:1.10.0'
// spring batch
implementation 'org.springframework.boot:spring-boot-starter-batch'
}
asciidoctor {
inputs.dir snippetsDir
configurations 'asciidoctorExt'
dependsOn test
}
asciidoctor.doFirst {
delete file('src/docs/asciidocs')
}
bootJar {
dependsOn asciidoctor
copy {
from asciidoctor.outputDir
into "src/main/resources/static/docs"
}
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
querydsl.extendsFrom compileClasspath
}
jar.enabled = false
jacoco.toolVersion = "0.8.7"
jacocoTestReport {
reports {
xml.enabled false
csv.enabled true
html.enabled true
csv.destination file("${buildDir}/jacoco/index.csv")
html.destination file("${buildDir}/jacoco/index.html")
}
// finalizedBy 'jacocoTestCoverageVerification'
}
//jacocoTestCoverageVerification {
// violationRules {
// rule {
// enabled = true
// element = 'CLASS'
//
// limit {
// counter = 'METHOD'
// value = 'COVEREDRATIO'
// minimum = 0.60
// }
//
// limit {
// counter = 'INSTRUCTION'
// value = 'COVEREDRATIO'
// minimum = 0.60
// }
//
// excludes = ["*.dto", "*.dto.*", "*.ServerApplication", "*.configuration.*", "*.security.*", "*.exception.*", "*.util.*"]
// }
// }
//}