Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SRVLOGIC-235] move maven plugins to plugin management and use go-offline option to make sure all deps are downloaded #19

Merged
merged 1 commit into from
Mar 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions productized/logic/build-quarkus-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ quarkus_platform_version="${3}"
kogito_version="${KOGITO_VERSION:-${4}}"

# GAV of maven plugins to be injected in the plugin management section
maven_plugins_gav=("org.apache.maven.plugins:maven-resources-plugin:3.3.1" "org.apache.maven.plugins:maven-install-plugin:3.1.1" "org.apache.maven.plugins:maven-jar-plugin:3.3.0" "org.apache.maven.plugins:maven-clean-plugin:3.3.1")
maven_plugins_gav=("org.apache.maven.plugins:maven-resources-plugin:3.3.1" "org.apache.maven.plugins:maven-install-plugin:3.1.1" "org.apache.maven.plugins:maven-jar-plugin:3.3.0" "org.apache.maven.plugins:maven-clean-plugin:3.3.1" "org.apache.maven.plugins:maven-deploy-plugin:3.1.1" "org.apache.maven.plugins:maven-site-plugin:3.12.1")

# Properties to be replaced in the pom by the new versions
properties_with_versions=("compiler-plugin.version:3.11.0" "surefire-plugin.version:3.1.2")

# extra dependencies required for offline mode
quarkus_extensions_extra_deps="com.aayushatharva.brotli4j:native-linux-aarch64:1.12.0,org.apache.maven.plugins:maven-deploy-plugin:3.1.1,org.apache.maven.plugins:maven-site-plugin:3.12.1"
quarkus_extensions_extra_deps="com.aayushatharva.brotli4j:native-linux-aarch64:1.12.0"
# common extensions used by the kogito-swf-builder and kogito-swf-devmode
quarkus_extensions="quarkus-kubernetes,smallrye-health,org.kie.kogito:kogito-quarkus-serverless-workflow:${kogito_version},org.kie.kogito:kogito-addons-quarkus-knative-eventing:${kogito_version},org.kie.kogito:kogito-addons-quarkus-microprofile-config-service-catalog:${kogito_version},org.kie.kogito:kogito-addons-quarkus-kubernetes:${kogito_version},org.kie.kogito:kogito-addons-quarkus-knative-serving:${kogito_version}"
# dev mode purpose extensions used only by the kogito-swf-devmode
Expand Down Expand Up @@ -185,7 +185,7 @@ mvn ${MAVEN_OPTIONS} \
-DskipTests \
-Dmaven.repo.local=${mvn_local_repo} \
-Dquarkus.container-image.build=false \
clean install
clean install dependency:go-offline "${quarkus_platform_groupid}":quarkus-maven-plugin:"${quarkus_platform_version}":go-offline

cd ${build_target_dir}

Expand Down
Loading