From 0030ef074e49b501f2ff9df231a9b339b2675af6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Besson?= Date: Wed, 29 May 2024 11:29:48 +0100 Subject: [PATCH] Startup script: use wildcard for the classpath 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 --- build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.gradle b/build.gradle index 16a6821..4914e7a 100644 --- a/build.gradle +++ b/build.gradle @@ -103,3 +103,7 @@ distributions { applicationDefaultJvmArgs = [ "-Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.SLF4JLogDelegateFactory" ] + +startScripts { + classpath = files('$APP_HOME/lib/*') +}