/
build.gradle
67 lines (56 loc) · 2.71 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
plugins {
id 'java'
id 'java-library'
id 'org.springframework.boot' version '2.3.4.RELEASE'
id "io.spring.dependency-management" version "1.0.10.RELEASE"
id "org.asciidoctor.convert" version "1.5.10"
}
// 하위 프로젝트 공유 구성.
subprojects {
group = 'com.caregiver'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = JavaVersion.VERSION_12
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
repositories {
mavenCentral()
}
ext {
springBootVersion = "2.3.4.RELEASE"
mockitoVersion = "3.11.1"
lombokVersion = "1.18.12"
awsSdkVersion = "1.12.5"
}
dependencies {
testImplementation project(':test-support')
implementation "org.projectlombok:lombok:${lombokVersion}"
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
testImplementation "org.projectlombok:lombok:${lombokVersion}"
testAnnotationProcessor "org.projectlombok:lombok:${lombokVersion}"
// https://junit.org/junit5/docs/current/user-guide/
//@Test 등 JUnit Jupiter를 사용하여 테스트를 작성하기위한 API
testImplementation 'org.junit.jupiter:junit-jupiter-api'
//매개 변수화 된 테스트를 사용 2.15.1
testCompileOnly 'org.junit.jupiter:junit-jupiter-params'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
testCompileOnly 'org.assertj:assertj-core:3.16.0'
testImplementation "org.mockito:mockito-core:${mockitoVersion}"
testImplementation "org.mockito:mockito-junit-jupiter:${mockitoVersion}"
testImplementation 'org.mockito:mockito-inline:3.8.0'
}
dependencyManagement {
imports {
// 특정 버전의 Maven 아티팩트에 대한 종속성을 정의 할 수 있다.
//https://docs.spring.io/dependency-management-plugin/docs/current-SNAPSHOT/reference/html/#dependency-management-configuration-bom-import
// 하위 모듈 내에서 이러한 종속성 중 하나가 필요한 경우 버전 번호가 dependencyManagement 클로저에서 로드되므로 버전 번호를 제공하지 않고 하위 모듈에서 지정할 수 있습니다.
// 이를 통해 Maven의 pom.xml 파일에있는 <dependencyManagement> 요소와 매우 유사하게 여러 모듈에 배포하는 대신 단일 위치에서 버전 번호를 지정할 수 있습니다.
mavenBom"org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
mavenBom"com.amazonaws:aws-java-sdk-bom:${awsSdkVersion}"
}
}
test {
useJUnitPlatform()
}
}