From 9c37c9d46caae0671e1683fb2ba28ea5266f7108 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 17 Jan 2025 07:41:33 +0100 Subject: [PATCH] fix: Improved transitive dependency detection for `jdeps` call --- warp4j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/warp4j b/warp4j index 5a5bcd8..6db3691 100755 --- a/warp4j +++ b/warp4j @@ -685,7 +685,7 @@ if [[ $JAVA_DISTRO_TYPE == $DISTRO_TYPE_JDK ]]; then if [ -n "$CLASS_PATH" ] then echo "Using given classpaths: $CLASS_PATH" - MODULES=$($JDEPS --class-path=$CLASS_PATH --print-module-deps --ignore-missing-deps --multi-release $JAVA_VERSION_BASE $JAR | grep -v Warning) + MODULES=$($JDEPS --class-path $CLASS_PATH --ignore-missing-deps --list-deps --multi-release $JAVA_VERSION_BASE $JAR | awk '{print $1}' | grep -Ev '^(Warning|Error:|Not\sfound|.*\.jar$|ch\.|com\.|org\.)' | sort -u | paste -sd, -) elif [ "$AUTO_CLASS_PATH" ] then echo "Extracting jar file to get classpath"