Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

각 모듈의 의존성관계를 추가하라 #4

Merged
merged 1 commit into from
Oct 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 11 additions & 0 deletions adapters/persistence/adapter-maria/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
dependencies {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maria db 써보실 생각이신가요? ㅎ
package 가 adapter-maria 라고 되어있어서요~

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yongjin5184 mysql 이 오라클이 인수하게됨으로써 maria가 저희한테는 아마 가장 적합하지 않을까 해서 사용했습니다.
혹시 추천해주실만한 RDB가 있으신가요?

implementation project(':domain')
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
testImplementation 'org.springframework.boot:spring-boot-starter-test'


// TODO: h2 테스트 단위에서만 사용하도록 수정필요.
// application run을 위해 임시로 추가한 h2의존성
runtimeOnly 'com.h2database:h2'

}
3 changes: 3 additions & 0 deletions adapters/web/adapter-admin-api/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
}
3 changes: 3 additions & 0 deletions adapters/web/adapter-client-api/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
}
11 changes: 11 additions & 0 deletions applications/admin-api/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
plugins {
id "org.springframework.boot" version "2.3.4.RELEASE"
}
// 관리자 Application 을 구성하는 의존성
dependencies {
implementation project(':domain')
implementation project(':adapters:persistence:adapter-maria')
implementation project(':adapters:web:adapter-admin-api')
implementation 'org.springframework.boot:spring-boot-starter'

}
11 changes: 11 additions & 0 deletions applications/client-api/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
plugins {
id "org.springframework.boot" version "2.3.4.RELEASE"
}
// 관리자 Application 을 구성하는 의존성
dependencies {
implementation project(':domain')
implementation project(':adapters:persistence:adapter-maria')
implementation project(':adapters:web:adapter-client-api')
implementation 'org.springframework.boot:spring-boot-starter'

}
26 changes: 19 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
plugins {
id 'java'
id 'org.springframework.boot' version '2.3.4.RELEASE'
id "org.asciidoctor.convert" version "1.5.10"
id "io.spring.dependency-management" version "1.0.10.RELEASE"
id 'checkstyle'
}

// 하위 프로젝트 공유 구성.
Expand All @@ -13,17 +10,32 @@ subprojects {
version = '0.0.1-SNAPSHOT'
sourceCompatibility = JavaVersion.VERSION_12

apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'io.spring.dependency-management'

repositories {
mavenCentral()
}

dependencyManagement {
imports {
mavenBom("org.springframework.boot:spring-boot-dependencies:2.3.4.RELEASE")
}
dependencies {
testImplementation project(':test-support')

implementation group: 'org.projectlombok', name: 'lombok', version: '1.18.12'
annotationProcessor group: 'org.projectlombok', name: 'lombok', version: '1.18.12'
testImplementation group: 'org.projectlombok', name: 'lombok', version: '1.18.12'
testAnnotationProcessor group: 'org.projectlombok', name: 'lombok', version: '1.18.12'

// 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')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요건 첨보네요 🤔

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

junit5 라이브러리들입니다.
스프링부트 2.x에서는 junit5가 기본 포함되어있지만 하위모듈중엔 스프링을 사용하지 않는 모듈도 있어서
해당 코드로 포함시켰습니다.

testRuntimeOnly('org.junit.jupiter:junit-jupiter-engine')

testCompileOnly group: 'org.assertj', name: 'assertj-core', version: '3.16.0'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '3.3.3'
testImplementation group: 'org.mockito', name: 'mockito-junit-jupiter', version: '3.3.3'
}

}
5 changes: 5 additions & 0 deletions common/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dependencies {
implementation 'org.springframework:spring-context'
implementation 'org.springframework:spring-tx'
api group: 'com.google.guava', name: 'guava', version: '29.0-jre'
}