Skip to content

Commit

Permalink
Startup script: use wildcard for the classpath
Browse files Browse the repository at this point in the history
  This pattern improves the extensibility of the micro-service as extension JARs
  can easily be added to lib/ folder and will be included at restart without the
  requirement to modify the CLASSPATH in the executable
  • Loading branch information
sbesson committed May 29, 2024
1 parent fcc250a commit cefbfcb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,7 @@ distributions {
applicationDefaultJvmArgs = [
"-Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.SLF4JLogDelegateFactory"
]

startScripts {
classpath = files('$APP_HOME/lib/*')
}

0 comments on commit cefbfcb

Please sign in to comment.