@@ -6,89 +6,161 @@ plugins {
6
6
id ' org.asciidoctor.jvm.convert' version ' 3.3.2'
7
7
}
8
8
9
- allprojects {
9
+ repositories {
10
+ mavenCentral()
11
+ }
12
+
13
+ subprojects {
14
+ apply plugin : ' java'
15
+ apply plugin : ' idea'
16
+ apply plugin : ' io.spring.dependency-management'
17
+ apply plugin : ' org.springframework.boot'
18
+ // apply plugin: 'org.asciidoctor.jvm.convert'
19
+
10
20
group = ' org.fastcampus'
11
21
version = ' 0.0.1-SNAPSHOT'
12
- sourceCompatibility = ' 17'
13
22
14
- repositories {
15
- mavenCentral()
23
+ java {
24
+ sourceCompatibility = ' 17'
25
+ targetCompatibility = ' 17'
16
26
}
17
27
18
- }
28
+ compileJava . options . encoding = ' UTF-8 '
19
29
20
- configurations {
21
- compileOnly {
22
- extendsFrom annotationProcessor
30
+ configurations {
31
+ compileOnly {
32
+ extendsFrom annotationProcessor
33
+ }
23
34
}
24
- }
25
35
26
- subprojects { // 각 모듈에 적용할 공통 설정
27
- apply plugin : ' java'
28
- apply plugin : ' org.springframework.boot'
29
- apply plugin : ' io.spring.dependency-management'
30
- apply plugin : ' org.asciidoctor.jvm.convert'
36
+ repositories {
37
+ mavenCentral()
38
+ }
31
39
32
40
dependencies {
33
- compileOnly ' org.projectlombok:lombok'
34
- annotationProcessor ' org.projectlombok:lombok'
41
+ implementation platform(' org.springframework.boot:spring-boot-dependencies:3.1.6' )
35
42
36
- // spring boot starter
43
+ // boot start
44
+ implementation ' org.springframework.boot:spring-boot-starter'
45
+ testImplementation ' org.springframework.boot:spring-boot-starter-test'
46
+ developmentOnly ' org.springframework.boot:spring-boot-devtools'
37
47
38
- implementation ' org.springframework.boot:spring-boot-starter-data-jdbc'
39
48
implementation ' org.springframework.boot:spring-boot-starter-data-jpa'
40
- implementation ' org.springframework.boot:spring-boot-starter-jdbc'
41
- // security 임시 제거
42
- // implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
43
- // implementation 'org.springframework.boot:spring-boot-starter-security'
44
- implementation ' org.springframework.boot:spring-boot-starter-validation'
45
- implementation ' org.springframework.boot:spring-boot-starter-web'
46
49
testImplementation ' org.springframework.boot:spring-boot-starter-test'
47
50
51
+ // jakarta.xml.bind
52
+ implementation ' jakarta.xml.bind:jakarta.xml.bind-api-parent:4.0.0'
53
+
54
+ // swagger
55
+ implementation ' org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0'
56
+ implementation ' org.springdoc:springdoc-openapi-starter-webmvc-api:2.2.0'
57
+ implementation ' org.springdoc:springdoc-openapi-starter-webflux-ui:2.2.0'
58
+ implementation ' org.springdoc:springdoc-openapi-starter-webflux-api:2.2.0'
59
+
60
+ // validation
61
+ implementation ' org.springframework.boot:spring-boot-starter-validation'
62
+
63
+ testImplementation ' io.projectreactor:reactor-test'
64
+ testImplementation ' org.springframework.restdocs:spring-restdocs-mockmvc'
65
+
48
66
// flyway
67
+ // implementation 'org.flywaydb:flyway-mysql'
49
68
// implementation 'org.flywaydb:flyway-core'
50
- developmentOnly ' org.springframework.boot:spring-boot-devtools'
51
69
52
- testImplementation ' org.springframework.restdocs:spring-restdocs-mockmvc'
53
- // testImplementation 'org.springframework.security:spring-security-test'
54
70
55
- runtimeOnly ' com.h2database:h2'
56
- runtimeOnly ' com.mysql:mysql-connector-j'
71
+ // lombok
72
+ compileOnly ' org.projectlombok:lombok'
73
+ annotationProcessor ' org.projectlombok:lombok'
74
+
75
+ // Security
76
+ // implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
77
+ // implementation 'org.springframework.boot:spring-boot-starter-security'
78
+ // testImplementation 'org.springframework.security:spring-security-test'
79
+
80
+ // junit5
81
+ testImplementation(" org.junit.jupiter:junit-jupiter-api:5.6.2" )
82
+ testRuntimeOnly(" org.junit.jupiter:junit-jupiter-engine:5.6.2" )
83
+ testImplementation(" org.junit.jupiter:junit-jupiter-params:5.6.2" )
84
+ testRuntimeOnly(" org.junit.jupiter:junit-jupiter-params:5.6.2" )
85
+
86
+ // m1 mac unable load solved
87
+ implementation ' io.netty:netty-resolver-dns-native-macos:4.1.68.Final:osx-aarch_64'
88
+ }
89
+
90
+ test {
91
+ useJUnitPlatform()
57
92
}
58
93
94
+ tasks. named(' bootBuildImage' ) {
95
+ builder = ' paketobuildpacks/builder-jammy-base:latest'
96
+ }
97
+ }
98
+
99
+ project(' :orury-core' ) {
59
100
tasks. named(' bootJar' ) { // 빌드할 때 bootjar 파일로 하겠다는 의미
60
101
enabled = false
61
102
}
62
103
63
104
tasks. named(' jar' ) { // 빌드할 때 jar 파일로 하겠다는 의미
64
- enabled = false
105
+ enabled = true
65
106
}
66
107
67
- tasks. named(' test' ) {
68
- useJUnitPlatform()
108
+ dependencies {
109
+ // db
110
+ runtimeOnly ' com.h2database:h2'
111
+ runtimeOnly ' com.mysql:mysql-connector-j'
112
+
113
+ // Spring-Web
114
+ implementation ' org.springframework.boot:spring-boot-starter-web'
115
+
116
+ // Jdbc, Jpa
117
+ implementation ' org.springframework.boot:spring-boot-starter-data-jdbc'
118
+ implementation ' org.springframework.boot:spring-boot-starter-jdbc'
69
119
}
70
120
}
71
121
72
122
project(' :orury-api' ) {
73
- dependencies {
123
+ tasks. named(' bootJar' ) { // 빌드할 때 bootjar 파일로 하겠다는 의미
124
+ enabled = true
125
+ }
74
126
127
+ tasks. named(' jar' ) { // 빌드할 때 jar 파일로 하겠다는 의미
128
+ enabled = false
75
129
}
76
- }
77
- project(' :orury-batch' ) {
130
+
78
131
dependencies {
79
- implementation ' org.springframework.boot:spring-boot-starter-batch'
80
- testImplementation ' org.springframework.batch:spring-batch-test'
132
+ implementation project(' :orury-core' )
133
+ // SSE setting
134
+ implementation ' org.springframework.boot:spring-boot-starter-webflux'
81
135
}
82
136
}
83
- project(' :orury-admin' ) {
84
- bootJar {
137
+
138
+ project(' orury-admin' ) {
139
+ tasks. named(' bootJar' ) { // 빌드할 때 bootjar 파일로 하겠다는 의미
140
+ enabled = true
141
+ }
142
+
143
+ tasks. named(' jar' ) { // 빌드할 때 jar 파일로 하겠다는 의미
85
144
enabled = false
86
145
}
87
146
88
- jar {
147
+ dependencies {
148
+ implementation project(' :orury-core' )
149
+ implementation project(' :orury-api' )
150
+ }
151
+ }
152
+ project(' :orury-batch' ) {
153
+ tasks. named(' bootJar' ) { // 빌드할 때 bootjar 파일로 하겠다는 의미
89
154
enabled = true
90
155
}
156
+
157
+ tasks. named(' jar' ) { // 빌드할 때 jar 파일로 하겠다는 의미
158
+ enabled = false
159
+ }
160
+
91
161
dependencies {
92
- implementation project(' :orury-api' )
162
+ implementation project(' :orury-core' )
163
+ implementation ' org.springframework.boot:spring-boot-starter-batch'
164
+ testImplementation ' org.springframework.batch:spring-batch-test'
93
165
}
94
- }
166
+ }
0 commit comments