From 3a26906088cf691fc4ac9e6d5704d38ff339be2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Besson?= Date: Wed, 22 May 2024 11:34:13 +0100 Subject: [PATCH] Use wildcard for the micro-service 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 omero-ms-image-region executable --- build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.gradle b/build.gradle index 5ea3a0f2..41af7100 100644 --- a/build.gradle +++ b/build.gradle @@ -111,6 +111,10 @@ distributions { } } +startScripts { + classpath = files('$APP_HOME/lib/*') +} + task memoRegenStartScript(type: CreateStartScripts) { mainClass = "com.glencoesoftware.omero.ms.image.region.MemoRegenerator" classpath = startScripts.classpath