質問編集履歴
1
変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -128,15 +128,15 @@
|
|
128
128
|
|
129
129
|
plugins {
|
130
130
|
|
131
|
-
|
131
|
+
id("org.springframework.boot") version "2.2.6.RELEASE"
|
132
|
-
|
132
|
+
|
133
|
-
|
133
|
+
id("io.spring.dependency-management") version "1.0.9.RELEASE"
|
134
|
-
|
134
|
+
|
135
|
-
|
135
|
+
kotlin("jvm") version "1.3.71"
|
136
|
-
|
136
|
+
|
137
|
-
|
137
|
+
kotlin("plugin.spring") version "1.3.71"
|
138
|
-
|
138
|
+
|
139
|
-
|
139
|
+
kotlin("plugin.jpa") version "1.3.71"
|
140
140
|
|
141
141
|
}
|
142
142
|
|
@@ -148,217 +148,177 @@
|
|
148
148
|
|
149
149
|
configurations {
|
150
150
|
|
151
|
-
|
151
|
+
compileOnly {
|
152
|
-
|
152
|
+
|
153
|
-
|
153
|
+
extendsFrom(configurations.annotationProcessor.get())
|
154
|
+
|
155
|
+
}
|
156
|
+
|
157
|
+
}
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
allprojects {
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
tasks.withType<JavaCompile> {
|
166
|
+
|
167
|
+
sourceCompatibility = "${findProperty("javaVersion")}"
|
168
|
+
|
169
|
+
targetCompatibility = "${findProperty("javaVersion")}"
|
170
|
+
|
171
|
+
}
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
tasks.withType<Test> {
|
176
|
+
|
177
|
+
useJUnitPlatform()
|
178
|
+
|
179
|
+
testLogging {
|
180
|
+
|
181
|
+
showExceptions = true
|
182
|
+
|
183
|
+
showStandardStreams = true
|
184
|
+
|
185
|
+
events(org.gradle.api.tasks.testing.logging.TestLogEvent.PASSED, org.gradle.api.tasks.testing.logging.TestLogEvent.SKIPPED, org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED)
|
154
186
|
|
155
187
|
}
|
156
188
|
|
157
|
-
}
|
189
|
+
}
|
190
|
+
|
191
|
+
|
192
|
+
|
158
|
-
|
193
|
+
tasks.withType<KotlinCompile>().configureEach {
|
194
|
+
|
159
|
-
|
195
|
+
kotlinOptions {
|
196
|
+
|
160
|
-
|
197
|
+
freeCompilerArgs += "-Xjsr305=strict"
|
198
|
+
|
199
|
+
jvmTarget = "${findProperty("javaVersion")}"
|
200
|
+
|
201
|
+
}
|
202
|
+
|
203
|
+
}
|
204
|
+
|
205
|
+
}
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
subprojects {
|
210
|
+
|
211
|
+
apply(plugin = "java")
|
212
|
+
|
213
|
+
group = "${findProperty("group")}"
|
214
|
+
|
215
|
+
version = "0.0.1-SNAPSHOT"
|
216
|
+
|
161
|
-
repositories {
|
217
|
+
repositories {
|
162
218
|
|
163
219
|
mavenCentral()
|
164
220
|
|
165
|
-
}
|
221
|
+
}
|
166
|
-
|
167
|
-
|
168
|
-
|
222
|
+
|
223
|
+
|
224
|
+
|
169
|
-
|
225
|
+
dependencies {
|
226
|
+
|
170
|
-
|
227
|
+
"implementation"("org.springframework.boot:spring-boot-starter-data-jpa")
|
228
|
+
|
229
|
+
"implementation"("org.jetbrains.kotlin:kotlin-reflect")
|
230
|
+
|
231
|
+
"implementation"("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
|
232
|
+
|
233
|
+
"compileOnly"("org.projectlombok:lombok")
|
234
|
+
|
235
|
+
"runtimeOnly"("mysql:mysql-connector-java")
|
236
|
+
|
171
|
-
|
237
|
+
"annotationProcessor"("org.projectlombok:lombok")
|
172
|
-
|
173
|
-
|
238
|
+
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
tasks.withType<JavaCompile> {
|
178
|
-
|
179
|
-
|
239
|
+
"testImplementation"("org.springframework.boot:spring-boot-starter-test") {
|
180
|
-
|
240
|
+
|
181
|
-
ta
|
241
|
+
exclude(group = "org.junit.vintage", module = "junit-vintage-engine")
|
182
242
|
|
183
243
|
}
|
184
244
|
|
185
|
-
|
245
|
+
}
|
186
|
-
|
246
|
+
|
247
|
+
|
248
|
+
|
187
|
-
|
249
|
+
tasks.withType<Test> {
|
188
|
-
|
189
|
-
useJUnitPlatform()
|
190
|
-
|
191
|
-
testLogging {
|
192
|
-
|
193
|
-
showExceptions = true
|
194
|
-
|
195
|
-
showStandardStreams = true
|
196
|
-
|
197
|
-
events(org.gradle.api.tasks.testing.logging.TestLogEvent.PASSED, org.gradle.api.tasks.testing.logging.TestLogEvent.SKIPPED, org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED)
|
198
|
-
|
199
|
-
}
|
200
|
-
|
201
|
-
}
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
tasks.withType<KotlinCompile>().configureEach {
|
206
|
-
|
207
|
-
kotlinOptions {
|
208
|
-
|
209
|
-
freeCompilerArgs += "-Xjsr305=strict"
|
210
|
-
|
211
|
-
jvmTarget = "${findProperty("javaVersion")}"
|
212
|
-
|
213
|
-
}
|
214
|
-
|
215
|
-
}
|
216
|
-
|
217
|
-
}
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
subprojects {
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
repositories {
|
226
|
-
|
227
|
-
mavenCentral()
|
228
|
-
|
229
|
-
}
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
dependencies {
|
234
|
-
|
235
|
-
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
|
236
|
-
|
237
|
-
implementation("org.jetbrains.kotlin:kotlin-reflect")
|
238
|
-
|
239
|
-
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
|
240
|
-
|
241
|
-
compileOnly("org.projectlombok:lombok")
|
242
|
-
|
243
|
-
runtimeOnly("mysql:mysql-connector-java")
|
244
|
-
|
245
|
-
annotationProcessor("org.projectlombok:lombok")
|
246
|
-
|
247
|
-
testImplementation("org.springframework.boot:spring-boot-starter-test") {
|
248
|
-
|
249
|
-
exclude(group = "org.junit.vintage", module = "junit-vintage-engine")
|
250
|
-
|
251
|
-
}
|
252
|
-
|
253
|
-
}
|
254
|
-
|
255
|
-
}
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
tasks.withType<Test> {
|
260
250
|
|
261
251
|
useJUnitPlatform()
|
262
252
|
|
263
|
-
}
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
}
|
302
|
-
|
303
|
-
}
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
p
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
/**
|
336
|
-
|
337
|
-
* ADMINプロジェクト
|
338
|
-
|
339
|
-
*/
|
340
|
-
|
341
|
-
project("admin") {
|
342
|
-
|
343
|
-
tasks.getByName<BootJar>("bootJar") {
|
344
|
-
|
345
|
-
launchScript()
|
346
|
-
|
347
|
-
}
|
348
|
-
|
349
|
-
dependencies {
|
350
|
-
|
351
|
-
implementation(project("base"))
|
352
|
-
|
353
|
-
implementation("org.springframework.boot:spring-boot-starter-actuator")
|
354
|
-
|
355
|
-
implementation("org.springframework.boot:spring-boot-starter-thymeleaf")
|
356
|
-
|
357
|
-
implementation("nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect:${findProperty("thymeleafLayoutDialectVersion")}")
|
358
|
-
|
359
|
-
}
|
360
|
-
|
361
|
-
}
|
253
|
+
}
|
254
|
+
|
255
|
+
}
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
project(":base") {
|
260
|
+
|
261
|
+
tasks.getByName<BootJar>("bootJar") {
|
262
|
+
|
263
|
+
enabled = false
|
264
|
+
|
265
|
+
}
|
266
|
+
|
267
|
+
tasks.getByName<Jar>("jar") {
|
268
|
+
|
269
|
+
enabled = true
|
270
|
+
|
271
|
+
}
|
272
|
+
|
273
|
+
}
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
project(":api") {
|
278
|
+
|
279
|
+
tasks.getByName<BootJar>("bootJar") {
|
280
|
+
|
281
|
+
launchScript()
|
282
|
+
|
283
|
+
}
|
284
|
+
|
285
|
+
dependencies {
|
286
|
+
|
287
|
+
"implementation"(project(":base"))
|
288
|
+
|
289
|
+
"implementation"("org.springframework.boot:spring-boot-starter-actuator")
|
290
|
+
|
291
|
+
"implementation"("org.apache.tika:tika-core:${findProperty("tikaVersion")}")
|
292
|
+
|
293
|
+
}
|
294
|
+
|
295
|
+
}
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
project(":admin") {
|
300
|
+
|
301
|
+
tasks.getByName<BootJar>("bootJar") {
|
302
|
+
|
303
|
+
launchScript()
|
304
|
+
|
305
|
+
}
|
306
|
+
|
307
|
+
dependencies {
|
308
|
+
|
309
|
+
"implementation"(project(":base"))
|
310
|
+
|
311
|
+
"implementation"("org.springframework.boot:spring-boot-starter-actuator")
|
312
|
+
|
313
|
+
"implementation"("org.springframework.boot:spring-boot-starter-thymeleaf")
|
314
|
+
|
315
|
+
"implementation"("nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect:${findProperty("thymeleafLayoutDialectVersion")}")
|
316
|
+
|
317
|
+
}
|
318
|
+
|
319
|
+
}
|
320
|
+
|
321
|
+
|
362
322
|
|
363
323
|
```
|
364
324
|
|
@@ -366,39 +326,7 @@
|
|
366
326
|
|
367
327
|
```
|
368
328
|
|
369
|
-
pluginManagement {
|
370
|
-
|
371
|
-
repositories {
|
372
|
-
|
373
|
-
mavenCentral()
|
374
|
-
|
375
|
-
gradlePluginPortal()
|
376
|
-
|
377
|
-
maven(url = "https://repo.spring.io/snapshot")
|
378
|
-
|
379
|
-
maven(url = "https://repo.spring.io/milestone")
|
380
|
-
|
381
|
-
}
|
382
|
-
|
383
|
-
resolutionStrategy {
|
384
|
-
|
385
|
-
eachPlugin {
|
386
|
-
|
387
|
-
if (requested.id.id == "org.springframework.boot") {
|
388
|
-
|
389
|
-
useModule("org.springframework.boot:spring-boot-gradle-plugin:${requested.version}")
|
390
|
-
|
391
|
-
}
|
392
|
-
|
393
|
-
}
|
394
|
-
|
395
|
-
}
|
396
|
-
|
397
|
-
}
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
rootProject.name = "me
|
329
|
+
rootProject.name = "sample"
|
402
330
|
|
403
331
|
|
404
332
|
|
@@ -456,11 +384,11 @@
|
|
456
384
|
|
457
385
|
```
|
458
386
|
|
459
|
-
Build file 'build.gradle.kts' line:
|
387
|
+
Build file 'build.gradle.kts' line: 101
|
460
|
-
|
461
|
-
|
462
|
-
|
388
|
+
|
389
|
+
|
390
|
+
|
463
|
-
|
391
|
+
Task with name 'bootJar' not found in project ':base'.
|
464
392
|
|
465
393
|
```
|
466
394
|
|