[SB3 Build] Adding dependencies to functions-dependencies. (#375)

This commit is contained in:
Corneil du Plessis
2022-10-18 23:47:22 +02:00
committed by GitHub
parent f07d7c44d1
commit 1b199b80de
3 changed files with 31 additions and 10 deletions

View File

@@ -34,26 +34,32 @@ else
MAVEN_OPT=-q
fi
if [ "$LOCAL" == "true" ]; then
MAVEN_GOAL="install"
else
MAVEN_GOAL="install deploy"
fi
pushd $APP_FOLDER > /dev/null
rm -rf apps
if [ -d "src/main/java" ]; then
echo "Deploying:$APP_FOLDER"
$ROOT_DIR/mvnw $MAVEN_OPT -s $ROOT_DIR/.settings.xml clean deploy -U -Pintegration
$ROOT_DIR/mvnw $MAVEN_OPT -s $ROOT_DIR/.settings.xml clean $MAVEN_GOAL -U -Pintegration
else
echo "Packaging:$APP_FOLDER"
$ROOT_DIR/mvnw $MAVEN_OPT -s $ROOT_DIR/.settings.xml clean package -U -Pintegration
$ROOT_DIR/mvnw $MAVEN_OPT -s $ROOT_DIR/.settings.xml clean install -U -Pintegration
fi
if [ ! -d apps ]; then
echo "Cannot find $APP_FOLDER/apps"
exit 2
fi
pushd apps
pushd apps > /dev/null
echo "Building:$APP_FOLDER/apps"
./mvnw $MAVEN_OPT install deploy -U -Pintegration
./mvnw $MAVEN_OPT $MAVEN_GOAL -U -Pintegration
./mvnw $MAVEN_OPT package jib:build -DskipTests \
-Djib.to.tags="$VERSION" \
-Djib.httpTimeout=1800000 \
-Djib.to.auth.username="$DOCKER_HUB_USERNAME" \
-Djib.to.auth.password="$DOCKER_HUB_PASSWORD"
popd
popd
popd > /dev/null
popd > /dev/null

View File

@@ -18,7 +18,12 @@ if [ "$VERBOSE" == "true" ]; then
else
MAVEN_OPT=-q
fi
./mvnw $MAVEN_OPT -s ./.settings.xml install deploy -f stream-applications-build -U
./mvnw $MAVEN_OPT -s ./.settings.xml install deploy -f functions -N -U
./mvnw $MAVEN_OPT -s ./.settings.xml install deploy -f functions/function-dependencies -N -U
./mvnw $MAVEN_OPT -s ./.settings.xml install deploy -f applications/stream-applications-core -N -U
if [ "$LOCAL" == "true" ]; then
MAVEN_GOAL="install"
else
MAVEN_GOAL="install deploy"
fi
./mvnw $MAVEN_OPT -s ./.settings.xml $MAVEN_GOAL -f stream-applications-build -U
./mvnw $MAVEN_OPT -s ./.settings.xml $MAVEN_GOAL -f functions -N -U
./mvnw $MAVEN_OPT -s ./.settings.xml $MAVEN_GOAL -f functions/function-dependencies -N -U
./mvnw $MAVEN_OPT -s ./.settings.xml $MAVEN_GOAL -f applications/stream-applications-core -N -U

View File

@@ -278,6 +278,16 @@
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-sleuth-zipkin</artifactId>
<version>3.1.4</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-sleuth</artifactId>
<version>3.1.4</version>
</dependency>
</dependencies>
</dependencyManagement>
</project>