From 6c8423365adebac2bdee4c3ccb0ca5c01a8d00e9 Mon Sep 17 00:00:00 2001 From: Soby Chacko Date: Mon, 7 Mar 2022 17:20:39 -0500 Subject: [PATCH] Simple parent pom with modules. Shell scripts for building core, kafka binder, rabbit binder and bom (dependencies) modules individually. --- buildBom.sh | 3 +++ buildCore.sh | 11 +++++++++++ buildDependencies.sh | 3 +++ buildKafkaBinder.sh | 11 +++++++++++ buildRabbitBinder.sh | 11 +++++++++++ pom.xml | 41 ++++++----------------------------------- 6 files changed, 45 insertions(+), 35 deletions(-) create mode 100755 buildBom.sh create mode 100755 buildCore.sh create mode 100755 buildDependencies.sh create mode 100755 buildKafkaBinder.sh create mode 100755 buildRabbitBinder.sh diff --git a/buildBom.sh b/buildBom.sh new file mode 100755 index 000000000..2611686ab --- /dev/null +++ b/buildBom.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +./mvnw clean install -f bom/pom.xml diff --git a/buildCore.sh b/buildCore.sh new file mode 100755 index 000000000..f6fcc2042 --- /dev/null +++ b/buildCore.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +if [ "$#" -eq 1 ]; then + ARGVALUE=$1 + if [[ $ARGVALUE == *"skipTest"* ]]; then + echo "Skippping Tests" + ./mvnw clean install -f core/pom.xml -DskipTests + fi +else + ./mvnw clean install -f core/pom.xml +fi diff --git a/buildDependencies.sh b/buildDependencies.sh new file mode 100755 index 000000000..2611686ab --- /dev/null +++ b/buildDependencies.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +./mvnw clean install -f bom/pom.xml diff --git a/buildKafkaBinder.sh b/buildKafkaBinder.sh new file mode 100755 index 000000000..b18b22946 --- /dev/null +++ b/buildKafkaBinder.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +if [ "$#" -eq 1 ]; then + ARGVALUE=$1 + if [[ $ARGVALUE == *"skipTest"* ]]; then + echo "Skippping Tests" + ./mvnw clean install -f binders/kafka-binder/pom.xml -DskipTests + fi +else + ./mvnw clean install -f binders/kafka-binder/pom.xml +fi diff --git a/buildRabbitBinder.sh b/buildRabbitBinder.sh new file mode 100755 index 000000000..4ca6ea518 --- /dev/null +++ b/buildRabbitBinder.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +if [ "$#" -eq 1 ]; then + ARGVALUE=$1 + if [[ $ARGVALUE == *"skipTest"* ]]; then + echo "Skippping Tests" + ./mvnw clean install -f binders/rabbit-binder/pom.xml -DskipTests + fi +else + ./mvnw clean install -f binders/rabbit-binder/pom.xml +fi diff --git a/pom.xml b/pom.xml index 3f301fbf8..5032c882e 100644 --- a/pom.xml +++ b/pom.xml @@ -31,6 +31,12 @@ true + + core + binders + bom + + @@ -167,41 +173,6 @@ - - full - - true - - - core - binders - bom - - - - kafka - - binders/kafka-binder - - - - rabbit - - binders/rabbit-binder - - - - bom - - bom - - - - core - - core - - spring