Skip to content

Commit 5067dbc

Browse files
committed
test apple env
1 parent c6240a6 commit 5067dbc

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

build.gradle

+16-13
Original file line numberDiff line numberDiff line change
@@ -49,25 +49,28 @@ dependencies {
4949
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
5050
}
5151

52-
def activeProfile = System.getenv("SPRING_PROFILES_ACTIVE") ?: "local"
5352

54-
processResources {
55-
println "$activeProfile"
56-
println System.getenv("DATABASE_USERNAME")
5753

58-
filesMatching("**/application.yaml") {
59-
expand(SPRING_PROFILES_ACTIVE: activeProfile)
60-
}
6154

62-
filesMatching("**/application-${activeProfile}.yaml") {
63-
expand([
64-
DATABASE_URL: System.getenv("DATABASE_URL"),
65-
DATABASE_USERNAME: System.getenv("DATABASE_USERNAME"),
66-
DATABASE_PASSWORD: System.getenv("DATABASE_PASSWORD")
67-
])
55+
clean.doFirst {
56+
def activeProfile = System.getenv("SPRING_PROFILES_ACTIVE") ?: "local"
57+
processResources {
58+
filesMatching("**/application.yaml") {
59+
expand(SPRING_PROFILES_ACTIVE: activeProfile)
60+
}
61+
62+
filesMatching("**/application-${activeProfile}.yaml") {
63+
expand([
64+
DATABASE_URL: System.getenv("DATABASE_URL"),
65+
DATABASE_USERNAME: System.getenv("DATABASE_USERNAME"),
66+
DATABASE_PASSWORD: System.getenv("DATABASE_PASSWORD")
67+
])
68+
}
6869
}
6970
}
7071

72+
73+
7174
// queryDsl 설정 ↓↓↓
7275
def querydslDir = "src/main/generated"
7376
sourceSets {

0 commit comments

Comments
 (0)