* First preparation to build HawkBit with JDK 9 Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com> * Reverted Mockito 2 update since it is not compiling under JDK 8 anymore * Fix for JDK internal calls by old version * Guava raised to 25.0-jre and CQ added. Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com> * Add updated RabbitMQ http client * Exclude test dependencies. Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com> * Exclusions for unnecessary Guava dependencies added Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com> * Remove provided annotation dependency for maven plugin Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
29 lines
1.3 KiB
Bash
Executable File
29 lines
1.3 KiB
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Copyright (c) 2015 Bosch Software Innovations GmbH and others.
|
|
#
|
|
# All rights reserved. This program and the accompanying materials
|
|
# are made available under the terms of the Eclipse Public License v1.0
|
|
# which accompanies this distribution, and is available at
|
|
# http://www.eclipse.org/legal/epl-v10.html
|
|
#
|
|
cd ..
|
|
|
|
# Provided and compile (excludes the test modules)
|
|
mvn dependency:list -DexcludeGroupIds=org.eclipse -pl !org.eclipse.hawkbit:hawkbit-repository-test,!org.eclipse.hawkbit:hawkbit-dmf-rabbitmq-test -Dsort=true -DoutputFile=dependencies.txt
|
|
find . -name dependencies.txt|while read i; do cat $i;done|grep '.*:.*:compile'|sort|uniq > 3rd-dependencies/compile.txt
|
|
find . -name dependencies.txt|while read i; do cat $i;done|grep '.*:.*:provided'|sort|uniq > 3rd-dependencies/provided.txt
|
|
|
|
# Test dependencies
|
|
mvn dependency:list -DexcludeGroupIds=org.eclipse -Dsort=true -DoutputFile=dependencies.txt
|
|
find . -name dependencies.txt|while read i; do cat $i;done|grep '.*:.*:test'|sort|uniq > 3rd-dependencies/test.txt
|
|
|
|
# Cleanup temp files
|
|
find . -name dependencies.txt|while read i; do rm $i;done
|
|
|
|
# Sort and order content
|
|
cd 3rd-dependencies/
|
|
cat compile.txt provided.txt|cut -d':' -f1-4|while read i; do grep -h $i test.txt;done|sort|uniq|while read x; do sed -i.bak -e s/$x// test.txt ;done
|
|
sed -i.bak '/^[[:space:]]*$/d' test.txt
|
|
rm *.bak
|