This commit is contained in:
Erik C. Thauvin 2021-04-29 06:43:53 -07:00
parent 09c3fef1ed
commit 3553573bc7
3 changed files with 11 additions and 8 deletions

View file

@ -24,7 +24,7 @@ dependencies {
repositories { repositories {
mavenLocal() mavenLocal()
jcenter() mavenCentral()
} }
application { application {

View file

@ -22,7 +22,7 @@ gradle_opts="--console=plain --no-build-cache --no-daemon"
maven_args="compile exec:java" maven_args="compile exec:java"
# #
# Version: 1.1.3 # Version: 1.1.5
# #
if [ "$java8" = true ] if [ "$java8" = true ]
@ -42,7 +42,7 @@ pause() {
} }
checkCopyright() { checkCopyright() {
if [ "$(grep -c "$date" "$1")" -eq 0 ] if [ "$(grep -c "$date" "$1")" == "0" ]
then then
echo -e " Invalid: ${red}$f${std}" echo -e " Invalid: ${red}$f${std}"
else else
@ -106,7 +106,7 @@ checkDeps() {
* ) for ex in "${!examples[@]}" * ) for ex in "${!examples[@]}"
do do
runGradle $(echo "${examples[ex]}" | cut -d " " -f 1) dU runGradle $(echo "${examples[ex]}" | cut -d " " -f 1) dU
runKobalt $(echo "${examples[ex]}" | cut -d " " -f 1) checkVersions # runKobalt $(echo "${examples[ex]}" | cut -d " " -f 1) checkVersions
runMaven $(echo "${examples[ex]}" | cut -d " " -f 1) versions:display-dependency-updates runMaven $(echo "${examples[ex]}" | cut -d " " -f 1) versions:display-dependency-updates
if [ "$ex" -eq "${#examples}" ] if [ "$ex" -eq "${#examples}" ]
then then
@ -132,7 +132,7 @@ runExamples() {
for ex in "${!examples[@]}" for ex in "${!examples[@]}"
do do
runGradle ${examples[ex]} clean $gradle_opts runGradle ${examples[ex]} clean $gradle_opts
runKobalt ${examples[ex]} clean # runKobalt ${examples[ex]} clean
runMaven $(echo "${examples[ex]}" | cut -d " " -f 1) clean $maven_args runMaven $(echo "${examples[ex]}" | cut -d " " -f 1) clean $maven_args
done done
} }
@ -154,7 +154,7 @@ examplesMenu() {
examplesMenu examplesMenu
else else
runGradle ${examples[$(($choice - 1))]} runGradle ${examples[$(($choice - 1))]}
runKobalt ${examples[$(($choice - 1))]} # runKobalt ${examples[$(($choice - 1))]}
runMaven $(echo "${examples[$(($choice - 1))]}" | cut -d " " -f 1) $maven_args runMaven $(echo "${examples[$(($choice - 1))]}" | cut -d " " -f 1) $maven_args
examplesMenu examplesMenu
fi ;; fi ;;
@ -165,9 +165,12 @@ examplesMenu() {
validateCopyrights() { validateCopyrights() {
clear clear
echo -e "${cyan}Validating copyrights...${std}" echo -e "${cyan}Validating copyrights...${std}"
for f in LICENSE.TXT ${src}/*${ext} ${test}/*${ext} for f in "LICENSE.txt" ${src}/*${ext} ${test}/*${ext}
do do
checkCopyright "$f" if [ -f "$f" ]
then
checkCopyright "$f"
fi
done done
pause pause
} }