forked from InhaBas/Inhabas.com-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
176 lines (146 loc) · 5.3 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
plugins {
id 'org.springframework.boot' version '2.6.1'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java-library'
id 'com.diffplug.spotless' version '6.13.0'
}
spotless {
java {
// 모든 Java 소스 파일에 포맷팅 규칙 적용
target("**/*.java")
// google 자바 포맷 적용
googleJavaFormat()
// 불필요한 임포트 제거 - 현재 미구현된 부분 있어서 기능 제거 추후 미구현 부분은 import에 '//'처리 필요함.
// removeUnusedImports()
// 마지막줄 New Line 처리
endWithNewline()
// 공백 제거
trimTrailingWhitespace()
//임포트 순서 정리
importOrder(
"java",
"javax",
"lombok",
"org.springframework",
"",
"org.junit",
"com.guide"
)
}
}
springBoot {
mainClass = 'com.inhabas.api.ApiApplication'
}
repositories {
mavenCentral()
}
subprojects {
apply plugin: 'java-library'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
group = 'com.inhabas'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
repositories {
mavenCentral()
}
configurations {
developmentOnly
runtimeClasspath {
extendsFrom developmentOnly
}
}
dependencies {
annotationProcessor(
'org.projectlombok:lombok',
'org.springframework.boot:spring-boot-configuration-processor',
'jakarta.persistence:jakarta.persistence-api',
'jakarta.annotation:jakarta.annotation-api',
"com.querydsl:querydsl-apt:${dependencyManagement.importedProperties['querydsl.version']}:jpa"
)
implementation (
'org.springframework.boot:spring-boot-starter-web',
'org.springframework.boot:spring-boot-starter-validation',
'org.springdoc:springdoc-openapi-ui:1.6.0',
'com.google.code.findbugs:jsr305:3.0.2',
'org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE',
// cloud config
'org.springframework.cloud:spring-cloud-starter-config:3.1.0',
'org.springframework.boot:spring-boot-starter-actuator:2.6.2',
'org.springframework.cloud:spring-cloud-starter-bootstrap:3.1.0',
// mail
'org.springframework.boot:spring-boot-starter-mail',
'com.amazonaws:aws-java-sdk-ses:1.12.188',
'org.springframework.boot:spring-boot-starter-thymeleaf',
// monitoring
'io.micrometer:micrometer-registry-prometheus'
)
testImplementation 'org.springframework.boot:spring-boot-starter-test'
compileOnly 'org.projectlombok:lombok'
runtimeOnly(
'org.mariadb.jdbc:mariadb-java-client',
'com.h2database:h2'
)
}
test {
useJUnitPlatform()
}
}
project(':module-jpa') {
bootJar {enabled = false}
jar {enabled = true}
dependencies {
api (
'org.springframework.boot:spring-boot-starter-data-jpa',
'com.querydsl:querydsl-jpa', // query dsl
'com.jcraft:jsch:0.1.55', // 로컬 개발용 db ssh tunneling, https://mavenlibs.com/maven/dependency/com.jcraft/jsch
// 'org.mariadb.jdbc:mariadb-java-client',
'mysql:mysql-connector-java',
'com.h2database:h2'
)
}
}
project(':module-auth') {
bootJar {enabled = false}
jar {enabled = true}
dependencies {
api project(':module-jpa')
// jwt
api 'io.jsonwebtoken:jjwt-api:0.11.2'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.11.2',
// Uncomment the next line if you want to use RSASSA-PSS (PS256, PS384, PS512) algorithms:
//'org.bouncycastle:bcprov-jdk15on:1.60',
'io.jsonwebtoken:jjwt-jackson:0.11.2' // or 'io.jsonwebtoken:jjwt-gson:0.11.2' for gson
// security
api 'org.springframework.boot:spring-boot-starter-security'
api 'org.springframework.boot:spring-boot-starter-oauth2-client'
api 'org.springframework.security:spring-security-core:5.1.6.RELEASE'
api 'javax.xml.bind:jaxb-api'
testImplementation 'org.springframework.security:spring-security-test'
testImplementation 'org.mockito:mockito-inline:2.13.0'
}
}
project(':module-fileStorage') {
bootJar {enabled = false}
jar {enabled = true}
dependencies {
api project(':module-jpa')
api 'javax.xml.bind:jaxb-api'
testImplementation 'org.springframework.security:spring-security-test'
testImplementation 'org.mockito:mockito-inline:2.13.0'
}
}
project(':resource-server') {
dependencies {
api project(':module-auth')
api project(':module-fileStorage')
api 'org.springframework.boot:spring-boot-starter-security'
testImplementation 'org.springframework.security:spring-security-test'
}
clean {
delete file('src/main/generated')
}
task cleanGeneratedDir(type: Delete) {
delete file('src/main/generated')
}
}