Allow samples to be run from IntelliJ or bootRun
This commit adjust the `spring.docker.compose.file` property value to allow running the sample via IntelliJ "run" button or from command line via `./gradlew bootRun`.
This commit is contained in:
@@ -48,4 +48,6 @@ bootRun {
|
||||
"--add-opens", "java.base/java.util=ALL-UNNAMED",
|
||||
"--add-opens", "java.base/sun.net=ALL-UNNAMED"
|
||||
]
|
||||
// when run from command line, path must be set relative to module dir
|
||||
systemProperty 'spring.docker.compose.file', 'compose.yaml'
|
||||
}
|
||||
|
||||
@@ -4,4 +4,5 @@ spring:
|
||||
message-routing-mode: custompartition
|
||||
docker:
|
||||
compose:
|
||||
# when run from Intellij via "Run" button, path must be set from project root
|
||||
file: spring-pulsar-sample-apps/sample-failover-custom-router/compose.yaml
|
||||
|
||||
@@ -47,4 +47,6 @@ bootRun {
|
||||
"--add-opens", "java.base/java.util=ALL-UNNAMED",
|
||||
"--add-opens", "java.base/sun.net=ALL-UNNAMED"
|
||||
]
|
||||
// when run from command line, path must be set relative to module dir
|
||||
systemProperty 'spring.docker.compose.file', 'compose.yaml'
|
||||
}
|
||||
|
||||
@@ -8,4 +8,5 @@ spring:
|
||||
schema-type: JSON
|
||||
docker:
|
||||
compose:
|
||||
# when run from Intellij via "Run" button, path must be set from project root
|
||||
file: spring-pulsar-sample-apps/sample-imperative-produce-consume/compose.yaml
|
||||
|
||||
Reference in New Issue
Block a user