-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
134 lines (110 loc) · 4.22 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
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'
}
group = 'univ.earthbreaker'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = '17'
}
jar {
enabled = false
}
repositories {
mavenCentral()
}
ext {
set('springCloudVersion', "2023.0.0")
snippetsDir = file('build/generated-snippets')
}
asciidoctor {
inputs.dir snippetsDir
configurations 'asciidoctorExt'
dependsOn test
}
bootJar {
dependsOn asciidoctor
from("${asciidoctor.outputDir}/html5") {
into 'static/docs'
}
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
configurations {
asciidoctorExt
configureEach {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
exclude group: 'commons-logging', module: 'commons-logging'
}
}
dependencies {
// ========== allprojects or subprojects 로 관리될 전역 의존성 ==========
implementation 'org.jetbrains:annotations:23.0.0'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
// ========== core:api ==========
implementation 'org.springframework.boot:spring-boot-starter-web'
// + implementation project(":core:auth")
// + implementation project(":core:domain")
// + implementation project(":external:oauth")
// + implementation project(":external:aws")
// + implementation project(":external:notification")
// + implementation project(":support:logging")
// + testImplementation project(":support:apidocs")
// ========== core:auth ==========
implementation 'io.jsonwebtoken:jjwt-api:0.11.5'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.11.5'
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.11.5'
// + implementation project(":core:domain")
// ========== core:domain ==========
// compileOnly 'org.springframework:spring-context'
implementation 'org.springframework.boot:spring-boot-starter-validation'
// implementation project(":event")
// ========== database ==========
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
runtimeOnly 'com.h2database:h2'
runtimeOnly 'com.mysql:mysql-connector-j'
// + implementation project(":core:domain")
// + implementation project(":core:auth")
// ========== event ==========
// compileOnly 'org.springframework:spring-context' // Kafka 또는 RabbitMQ 등 교체 가능
// ========== batch ==========
implementation 'org.springframework.boot:spring-boot-starter-batch'
testImplementation 'org.springframework.batch:spring-batch-test'
// + implementation project(":database:core")
// + implementation project(":support:logging")
// ========== external:oauth ==========
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign'
// ========== external:aws ==========
implementation 'com.amazonaws:aws-java-sdk-s3:1.12.685'
implementation 'org.testcontainers:localstack'
testImplementation 'org.testcontainers:junit-jupiter'
// implementation project(":event")
// ========== external:notification ==========
implementation 'com.google.firebase:firebase-admin:9.2.0'
// ========== support:logging ==========
implementation 'io.sentry:sentry-log4j2:7.6.0'
implementation 'org.springframework.boot:spring-boot-starter-log4j2'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml'
implementation 'com.lmax:disruptor:3.4.2'
// ========== support:apidocs ==========
testImplementation 'com.fasterxml.jackson.core:jackson-databind' // 멀티 모듈 설정 시 compileOnly 의존성
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc' // 멀티 모듈 설정 시 apiElements 의존성
asciidoctorExt 'org.springframework.restdocs:spring-restdocs-asciidoctor'
}
tasks.named('test') {
useJUnitPlatform()
outputs.dir snippetsDir
}
tasks.register('copyDocument', Copy) {
dependsOn asciidoctor
from file("build/docs/asciidoc/")
into file("src/main/resources/static/docs")
}
build {
dependsOn copyDocument
}