From 3553573bc75568acd7d9f3e571e69d9be71dc871 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Thu, 29 Apr 2021 06:43:53 -0700 Subject: [PATCH] Cleanup --- LICENSE.TXT => LICENSE.txt | 0 .../kotlin/build.gradle.kts | 2 +- preflightcheck.sh | 17 ++++++++++------- 3 files changed, 11 insertions(+), 8 deletions(-) rename LICENSE.TXT => LICENSE.txt (100%) diff --git a/LICENSE.TXT b/LICENSE.txt similarity index 100% rename from LICENSE.TXT rename to LICENSE.txt diff --git a/examples/annotation-processor/kotlin/build.gradle.kts b/examples/annotation-processor/kotlin/build.gradle.kts index 25a3815..8b03755 100644 --- a/examples/annotation-processor/kotlin/build.gradle.kts +++ b/examples/annotation-processor/kotlin/build.gradle.kts @@ -24,7 +24,7 @@ dependencies { repositories { mavenLocal() - jcenter() + mavenCentral() } application { diff --git a/preflightcheck.sh b/preflightcheck.sh index 3c4900a..6de355e 100755 --- a/preflightcheck.sh +++ b/preflightcheck.sh @@ -22,7 +22,7 @@ gradle_opts="--console=plain --no-build-cache --no-daemon" maven_args="compile exec:java" # -# Version: 1.1.3 +# Version: 1.1.5 # if [ "$java8" = true ] @@ -42,7 +42,7 @@ pause() { } checkCopyright() { - if [ "$(grep -c "$date" "$1")" -eq 0 ] + if [ "$(grep -c "$date" "$1")" == "0" ] then echo -e " Invalid: ${red}$f${std}" else @@ -106,7 +106,7 @@ checkDeps() { * ) for ex in "${!examples[@]}" do 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 if [ "$ex" -eq "${#examples}" ] then @@ -132,7 +132,7 @@ runExamples() { for ex in "${!examples[@]}" do 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 done } @@ -154,7 +154,7 @@ examplesMenu() { examplesMenu else runGradle ${examples[$(($choice - 1))]} - runKobalt ${examples[$(($choice - 1))]} + # runKobalt ${examples[$(($choice - 1))]} runMaven $(echo "${examples[$(($choice - 1))]}" | cut -d " " -f 1) $maven_args examplesMenu fi ;; @@ -165,9 +165,12 @@ examplesMenu() { validateCopyrights() { clear 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 - checkCopyright "$f" + if [ -f "$f" ] + then + checkCopyright "$f" + fi done pause }