Skip to content

Commit

Permalink
[Build] Explicitly set *.yml extension as optional file JVM images
Browse files Browse the repository at this point in the history
  • Loading branch information
Schaka committed Oct 23, 2024
1 parent 187357a commit bd154d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ extra {
tasks.withType<BootRun> {
jvmArgs(
arrayOf(
"-Dspring.config.additional-location=optional:file:/config/application.yaml,optional:file:/workspace/application.yaml",
"-Dspring.config.additional-location=optional:file:/config/application.yaml,optional:file:/workspace/application.yaml,optional:file:/workspace/application.yml",
"-Dsun.jnu.encoding=UTF-8",
"-Dfile.encoding=UTF-8"
)
Expand All @@ -176,7 +176,7 @@ tasks.withType<BootRun> {

tasks.withType<ProcessAot> {
args(
"-Dspring.config.additional-location=optional:file:/config/application.yaml,optional:file:/workspace/application.yaml",
"-Dspring.config.additional-location=optional:file:/config/application.yaml,optional:file:/workspace/application.yaml,optional:file:/workspace/application.yml",
"-Dsun.jnu.encoding=UTF-8",
"-Dfile.encoding=UTF-8"
)
Expand Down Expand Up @@ -242,7 +242,7 @@ jib {
}
container {
jvmFlags = listOf(
"-Dspring.config.additional-location=optional:file:/config/application.yaml,optional:file:/workspace/application.yaml",
"-Dspring.config.additional-location=optional:file:/config/application.yaml,optional:file:/workspace/application.yaml,optional:file:/workspace/application.yml",
"-Dsun.jnu.encoding=UTF-8",
"-Dfile.encoding=UTF-8",
"-Xms256m",
Expand Down

0 comments on commit bd154d2

Please sign in to comment.