Skip to content

Commit d6a4b0e

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

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

build.gradle

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

52+
def activeProfile = System.getenv("SPRING_PROFILES_ACTIVE") ?: "local"
5253

54+
processResources {
55+
println "--------------"
56+
println System.getenv("DATABASE_USERNAME").length()
5357

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

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-
}
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+
])
6968
}
7069
}
7170

72-
73-
7471
// queryDsl 설정 ↓↓↓
7572
def querydslDir = "src/main/generated"
7673
sourceSets {

0 commit comments

Comments
 (0)