Boot 2.5.2 required a newer version of Gradle, too, so I updated it to the current version (7.1 as of this writing). Also added -initial or -complete to the artifactId field in the pom.xml files. Fixed the test script.
51 lines
711 B
Bash
Executable File
51 lines
711 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# The following lines do not work. Start gs-producing-web-service in
|
|
# a separate terminal window and then run this test script.
|
|
|
|
#cwd=$(pwd)
|
|
|
|
#cd /tmp
|
|
#git clone https://github.com/spring-guides/gs-producing-web-service
|
|
#(cd gs-producing-web-service/complete; ./mvnw clean install spring-boot:run &)
|
|
|
|
#sleep 10
|
|
|
|
#cd $cwd
|
|
|
|
cd complete
|
|
|
|
./mvnw clean package
|
|
ret=$?
|
|
if [ $ret -ne 0 ]; then
|
|
exit $ret
|
|
fi
|
|
rm -rf target
|
|
|
|
./gradlew build
|
|
ret=$?
|
|
if [ $ret -ne 0 ]; then
|
|
exit $ret
|
|
fi
|
|
rm -rf build
|
|
|
|
cd ../initial
|
|
|
|
./mvnw clean spring-boot:run
|
|
ret=$?
|
|
if [ $ret -ne 0 ]; then
|
|
exit $ret
|
|
fi
|
|
rm -rf target
|
|
|
|
./gradlew bootRun
|
|
ret=$?
|
|
if [ $ret -ne 0 ]; then
|
|
exit $ret
|
|
fi
|
|
rm -rf build
|
|
|
|
pkill -f spring-boot:run
|
|
|
|
exit
|