From 9039bdc5e5a2302f1bfe815d3fdcff3a65495b7d Mon Sep 17 00:00:00 2001 From: Soby Chacko Date: Wed, 12 Oct 2022 14:14:55 -0400 Subject: [PATCH] Update build scripts Update build scripts to allow -Ddisable.checks flag to disable checkstyle auditing during the build. --- buildCore.sh | 3 +++ buildKafkaBinder.sh | 7 +++++-- buildKinesisBinder.sh | 7 +++++-- buildRabbitBinder.sh | 7 +++++-- buildSchemaRegistry.sh | 7 +++++-- 5 files changed, 23 insertions(+), 8 deletions(-) diff --git a/buildCore.sh b/buildCore.sh index f6fcc2042..f284cecdc 100755 --- a/buildCore.sh +++ b/buildCore.sh @@ -5,6 +5,9 @@ if [ "$#" -eq 1 ]; then if [[ $ARGVALUE == *"skipTest"* ]]; then echo "Skippping Tests" ./mvnw clean install -f core/pom.xml -DskipTests + elif [[ $ARGVALUE == *"disable.checks"* ]]; then + echo "Skippping checkstyle checks" + ./mvnw clean install -f core/pom.xml -Ddisable.checks=true fi else ./mvnw clean install -f core/pom.xml diff --git a/buildKafkaBinder.sh b/buildKafkaBinder.sh index b18b22946..fcb4816ed 100755 --- a/buildKafkaBinder.sh +++ b/buildKafkaBinder.sh @@ -4,8 +4,11 @@ if [ "$#" -eq 1 ]; then ARGVALUE=$1 if [[ $ARGVALUE == *"skipTest"* ]]; then echo "Skippping Tests" - ./mvnw clean install -f binders/kafka-binder/pom.xml -DskipTests - fi + ./mvnw clean install -f core/pom.xml -DskipTests + elif [[ $ARGVALUE == *"disable.checks"* ]]; then + echo "Skippping checkstyle checks" + ./mvnw clean install -f core/pom.xml -Ddisable.checks=true + fi else ./mvnw clean install -f binders/kafka-binder/pom.xml fi diff --git a/buildKinesisBinder.sh b/buildKinesisBinder.sh index ab15d538f..7b258bad6 100755 --- a/buildKinesisBinder.sh +++ b/buildKinesisBinder.sh @@ -4,8 +4,11 @@ if [ "$#" -eq 1 ]; then ARGVALUE=$1 if [[ $ARGVALUE == *"skipTest"* ]]; then echo "Skippping Tests" - ./mvnw clean install -f binders/kinesis-binder/pom.xml -DskipTests - fi + ./mvnw clean install -f core/pom.xml -DskipTests + elif [[ $ARGVALUE == *"disable.checks"* ]]; then + echo "Skippping checkstyle checks" + ./mvnw clean install -f core/pom.xml -Ddisable.checks=true + fi else ./mvnw clean install -f binders/kinesis-binder/pom.xml fi diff --git a/buildRabbitBinder.sh b/buildRabbitBinder.sh index 4ca6ea518..d8d56e568 100755 --- a/buildRabbitBinder.sh +++ b/buildRabbitBinder.sh @@ -4,8 +4,11 @@ if [ "$#" -eq 1 ]; then ARGVALUE=$1 if [[ $ARGVALUE == *"skipTest"* ]]; then echo "Skippping Tests" - ./mvnw clean install -f binders/rabbit-binder/pom.xml -DskipTests - fi + ./mvnw clean install -f core/pom.xml -DskipTests + elif [[ $ARGVALUE == *"disable.checks"* ]]; then + echo "Skippping checkstyle checks" + ./mvnw clean install -f core/pom.xml -Ddisable.checks=true + fi else ./mvnw clean install -f binders/rabbit-binder/pom.xml fi diff --git a/buildSchemaRegistry.sh b/buildSchemaRegistry.sh index 5fac5e896..31356714c 100755 --- a/buildSchemaRegistry.sh +++ b/buildSchemaRegistry.sh @@ -4,8 +4,11 @@ if [ "$#" -eq 1 ]; then ARGVALUE=$1 if [[ $ARGVALUE == *"skipTest"* ]]; then echo "Skippping Tests" - ./mvnw clean install -f schema-registry/pom.xml -DskipTests - fi + ./mvnw clean install -f core/pom.xml -DskipTests + elif [[ $ARGVALUE == *"disable.checks"* ]]; then + echo "Skippping checkstyle checks" + ./mvnw clean install -f core/pom.xml -Ddisable.checks=true + fi else ./mvnw clean install -f schema-registry/pom.xml fi