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

[REFACTOR] Gradle 의존성 분리 및 제거 - #92 #93

Merged
merged 2 commits into from
Jul 14, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 30 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
plugins {
id 'java'
id 'java-library'
id 'org.springframework.boot' version '3.3.1'
id 'io.spring.dependency-management' version '1.1.5'

}

bootJar.enabled = false // 빌드시 현재 모듈(multi-module)의 .jar를 생성하지 않습니다.
Expand All @@ -10,8 +11,13 @@ repositories {
mavenCentral()
}






Comment on lines +14 to +18
Copy link
Contributor

Choose a reason for hiding this comment

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

엔터 왤캐 많음..ㅋㅋ

subprojects {
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
Expand All @@ -36,6 +42,8 @@ subprojects {
}

dependencies {


// lombok
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
Expand All @@ -53,3 +61,23 @@ subprojects {
useJUnitPlatform()
}
}

project(':dateroad-external') {
dependencies {
implementation project(':dateroad-common')
}
}

project(':dateroad-domain') {
dependencies {
implementation project(':dateroad-common')
}
}

project(':dateroad-api') {
dependencies {
implementation project(':dateroad-external')
implementation project(':dateroad-common')
implementation project(':dateroad-domain')
}
}
12 changes: 2 additions & 10 deletions dateroad-api/build.gradle
Original file line number Diff line number Diff line change
@@ -1,21 +1,13 @@
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-data-redis'

runtimeOnly 'org.postgresql:postgresql'
implementation project(path: ':dateroad-common')
implementation project(path: ':dateroad-domain')
implementation project(path: ':dateroad-external')

implementation 'org.springframework.boot:spring-boot-starter-data-redis'
runtimeOnly 'org.postgresql:postgresql'
//swagger
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.6.0'

//jwt
implementation group: 'io.jsonwebtoken', name: 'jjwt-api', version: '0.11.5'
implementation group: 'io.jsonwebtoken', name: 'jjwt-impl', version: '0.11.5'
implementation group: 'io.jsonwebtoken', name: 'jjwt-jackson', version: '0.11.5'
}

jar.enabled = false
13 changes: 7 additions & 6 deletions dateroad-common/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
runtimeOnly 'org.postgresql:postgresql'
dependencies {
api 'org.springframework.boot:spring-boot-starter-web'
api 'org.springframework.boot:spring-boot-starter-data-jpa'

runtimeOnly 'org.postgresql:postgresql'
//jwt
implementation group: 'io.jsonwebtoken', name: 'jjwt-api', version: '0.11.5'
implementation group: 'io.jsonwebtoken', name: 'jjwt-impl', version: '0.11.5'
implementation group: 'io.jsonwebtoken', name: 'jjwt-jackson', version: '0.11.5'
api group: 'io.jsonwebtoken', name: 'jjwt-api', version: '0.11.5'
api group: 'io.jsonwebtoken', name: 'jjwt-impl', version: '0.11.5'
api group: 'io.jsonwebtoken', name: 'jjwt-jackson', version: '0.11.5'
}

bootJar.enabled = false
Expand Down
6 changes: 2 additions & 4 deletions dateroad-domain/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
dependencies {
implementation project(path: ':dateroad-common')
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-validation'
api project(path: ':dateroad-common')
api 'org.springframework.boot:spring-boot-starter-validation'
}

bootJar.enabled = false
Expand Down
21 changes: 5 additions & 16 deletions dateroad-external/build.gradle
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
dependencies {
//feign
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign:4.1.2'
implementation 'org.springframework.boot:spring-boot-starter-web'

implementation project(path: ':dateroad-common')

//jwt
implementation group: 'io.jsonwebtoken', name: 'jjwt-api', version: '0.11.5'
implementation group: 'io.jsonwebtoken', name: 'jjwt-impl', version: '0.11.5'
implementation group: 'io.jsonwebtoken', name: 'jjwt-jackson', version: '0.11.5'

api 'org.springframework.cloud:spring-cloud-starter-openfeign:4.1.2'
// AWS sdk
implementation("software.amazon.awssdk:bom:2.21.0")
implementation("software.amazon.awssdk:s3:2.21.0")

api("software.amazon.awssdk:bom:2.21.0")
api("software.amazon.awssdk:s3:2.21.0")
// apple secretKey
implementation 'org.bouncycastle:bcprov-jdk15on:1.70'
implementation 'org.bouncycastle:bcpkix-jdk18on:1.75'

implementation 'org.springframework.boot:spring-boot-starter-web'
api 'org.bouncycastle:bcprov-jdk15on:1.70'
api 'org.bouncycastle:bcpkix-jdk18on:1.75'
}

bootJar.enabled = false
Expand Down
Loading