Skip to content

Commit

Permalink
Support setting dash-tool options on command line
Browse files Browse the repository at this point in the history
Signed-off-by: Kai Hudalla <[email protected]>
  • Loading branch information
sophokles73 committed May 6, 2022
1 parent 9e7f9b6 commit c6e2a61
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions create_dependencies_list.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@
#*******************************************************************************

DASH_LICENSE_JAR=$1
shift

if [ ! -f "$DASH_LICENSE_JAR" ]; then
echo "This script can be used to update the DEPENDENCIES"
echo "file with the result of checking the Hono maven"
echo "dependencies using the Dash License Tool."
echo ""
echo "Usage: $0 <org.eclipse.dash.licenses jar path>"
echo "Usage: $0 <org.eclipse.dash.licenses jar path> [<other dash-tool parameters>..]"
exit 1
fi

Expand All @@ -28,5 +29,5 @@ DEPENDENCIES="legal/src/main/resources/legal/DEPENDENCIES"

mvn dependency:list -DexcludeGroupIds=org.eclipse,org.junit -Pmetrics-prometheus,build-docker-image,build-native-image | grep -Poh "\S+:(runtime|compile|provided)" | sed -e 's/^\(.*\)\:.*$/\1/' | sort | uniq > $HONO_MAVEN_DEPS

java -Dorg.eclipse.dash.timeout=60 -jar $DASH_LICENSE_JAR -batch 90 -summary $DEPENDENCIES $HONO_MAVEN_DEPS
java -Dorg.eclipse.dash.timeout=60 -jar $DASH_LICENSE_JAR -batch 90 -summary $DEPENDENCIES $HONO_MAVEN_DEPS $@
sort -o $DEPENDENCIES $DEPENDENCIES

0 comments on commit c6e2a61

Please sign in to comment.