Skip to content

Commit

Permalink
chore: spring BOM 적용, 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
inferior3x committed Dec 24, 2024
1 parent ce05981 commit f31d5d3
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 25 deletions.
22 changes: 9 additions & 13 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,19 @@ plugins {
id 'java'
}

group = 'com.whoz_in'
version = '0.0.1-SNAPSHOT'
ext {
springBootVersion = '3.4.0'
springDependencyManagementVersion = '1.1.5'
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}

configurations {
compileOnly {
extendsFrom annotationProcessor
}
}

repositories {
mavenCentral()
}

subprojects { // 모든 하위 모듈들에 이 설정을 적용합니다.

group 'com.whoz_in'
version '0.0.1-SNAPSHOT'

Expand All @@ -39,8 +32,11 @@ subprojects { // 모든 하위 모듈들에 이 설정을 적용합니다.
}

dependencies {
// spring BOM
implementation platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}")

// for DI
compileOnly 'org.springframework:spring-context:6.1.13'
compileOnly 'org.springframework:spring-context'

//lombok
compileOnly 'org.projectlombok:lombok:1.18.30'
Expand Down
2 changes: 1 addition & 1 deletion modules/infrastructure/api-query-jpa/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dependencies {
compileOnly project(":modules:main-api")

compileOnly 'org.springframework.boot:spring-boot-starter-data-jpa:3.3.5'
compileOnly 'org.springframework.boot:spring-boot-starter-data-jpa'
}
2 changes: 1 addition & 1 deletion modules/infrastructure/domain-jpa/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies {
compileOnly project(':modules:domain')

implementation 'org.springframework.boot:spring-boot-starter-data-jpa:3.3.5'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
runtimeOnly 'com.mysql:mysql-connector-j:8.3.0'
}
4 changes: 2 additions & 2 deletions modules/infrastructure/log-writer/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-jdbc:3.3.5'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.2'
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
implementation 'com.fasterxml.jackson.core:jackson-databind'

runtimeOnly 'com.mysql:mysql-connector-j:8.3.0'
runtimeOnly 'org.mariadb.jdbc:mariadb-java-client:3.1.4'
Expand Down
4 changes: 2 additions & 2 deletions modules/infrastructure/logging/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dependencies {
implementation 'ch.qos.logback:logback-classic'
implementation 'com.fasterxml.jackson.core:jackson-databind'
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.2'
implementation 'ch.qos.logback:logback-classic:1.5.11'
}
4 changes: 2 additions & 2 deletions modules/main-api/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id 'org.springframework.boot' version "3.3.5"
id 'io.spring.dependency-management' version '1.1.5'
id 'org.springframework.boot' version "${springBootVersion}"
id 'io.spring.dependency-management' version "${springDependencyManagementVersion}"
}

version = '0.0.1-SNAPSHOT'
Expand Down
4 changes: 2 additions & 2 deletions modules/master-api/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id 'org.springframework.boot' version "3.3.5"
id 'io.spring.dependency-management' version '1.1.5'
id 'org.springframework.boot' version "${springBootVersion}"
id 'io.spring.dependency-management' version "${springDependencyManagementVersion}"
}

version = '0.0.1-SNAPSHOT'
Expand Down
4 changes: 2 additions & 2 deletions modules/network-api/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id 'org.springframework.boot' version "3.3.5"
id 'io.spring.dependency-management' version '1.1.5'
id 'org.springframework.boot' version "${springBootVersion}"
id 'io.spring.dependency-management' version "${springDependencyManagementVersion}"
}

version = '0.0.1-SNAPSHOT'
Expand Down

0 comments on commit f31d5d3

Please sign in to comment.