Skip to content

Commit

Permalink
🚑 fix: 빌드 스크립트 서브모듈 환경설정 변경감지 로직 추가
Browse files Browse the repository at this point in the history
- gradle build 시점에 WAS 설정 파일의 존재 여부와 상관없이 매번 submodule import를 시도하도록 변경
  • Loading branch information
loveysuby committed Sep 28, 2024
1 parent 331ea12 commit 9178ed2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[submodule "toyou-server-config"]
path = toyou-server-config
url = [email protected]:Princess-in-silvertown/toyou-server-config.git
path = toyou-server-config
url = [email protected]:Princess-in-silvertown/toyou-server-config.git
branch = main
11 changes: 8 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,10 @@ dependencies {

tasks.register('importConfigSubmodule', Copy) {
copy {
from './toyou-server-config/src/main/resources/'
include '*.yml'
into './src/main/resources'
from "${project.rootDir}/toyou-server-config/src/main/resources/"
include 'application*.yml'
into "${project.projectDir}/src/main/resources"
outputs.upToDateWhen { false }
}
}

Expand All @@ -72,6 +73,10 @@ dependencyManagement {
}
}

tasks.named('processResources') {
dependsOn 'importConfigSubmodule'
}

tasks.named('test') {
useJUnitPlatform()
}
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ spring:
active: dev

jackson:
property-naming-strategy: LOWER_CAMEL_CASE
property-naming-strategy: LOWER_CAMEL_CASE
2 changes: 1 addition & 1 deletion toyou-server-config

0 comments on commit 9178ed2

Please sign in to comment.