Skip to content
Permalink
Browse files
chore(deps): move Quarkus native image into a property
  • Loading branch information
squakez committed May 31, 2022
1 parent a37f48e commit 05bd2381b9dd2af6fe41ca6d489ab824d01c638c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
@@ -42,8 +42,8 @@

<!-- quarkus -->
<camel-quarkus-version>2.8.0</camel-quarkus-version>
<graalvm-version>22.0.0</graalvm-version>
<quarkus-version>2.8.0.Final</quarkus-version>
<quarkus-native-builder-image>quay.io/quarkus/ubi-quarkus-native-image:22.0.0-java11</quarkus-native-builder-image>

<!-- camel-k -->
<groovy-version>3.0.10</groovy-version>
@@ -977,7 +977,7 @@
<properties>
<quarkus.native.container-build>true</quarkus.native.container-build>
<quarkus.native.container-runtime>docker</quarkus.native.container-runtime>
<quarkus.native.builder-image>quay.io/quarkus/ubi-quarkus-native-image:${graalvm-version}-java11</quarkus.native.builder-image>
<quarkus.native.builder-image>${quarkus-native-builder-image}</quarkus.native.builder-image>
</properties>
</profile>
<profile>
@@ -990,7 +990,7 @@
<properties>
<quarkus.native.container-build>true</quarkus.native.container-build>
<quarkus.native.container-runtime>podman</quarkus.native.container-runtime>
<quarkus.native.builder-image>quay.io/quarkus/ubi-quarkus-native-image:${graalvm-version}-java11</quarkus.native.builder-image>
<quarkus.native.builder-image>${quarkus-native-builder-image}</quarkus.native.builder-image>
</properties>
</profile>
</profiles>
@@ -12,7 +12,6 @@ Usage: ./script/bump.sh [options]
--camel Bump Camel version
--camel-quarkus Bump Camel-Quarkus version
--quarkus Bump Quarkus version
--graalvm Bump GraalVM version
--help This help message
Example: ./script/bump.sh --version 1.14.0-SNAPSHOT --camel 3.16.0
@@ -24,7 +23,6 @@ VERSION=""
CAMEL=""
CAMELQUARKUS=""
QUARKUS=""
GRAALVM=""

main() {
parse_args $@
@@ -49,11 +47,6 @@ main() {
mvn versions:set-property -Dproperty="quarkus-version" -DnewVersion="$QUARKUS"
echo "Quarkus platform version set to $QUARKUS"
fi

if [[ ! -z "$GRAALVM" ]]; then
mvn versions:set-property -Dproperty="graalvm-version" -DnewVersion="$GRAALVM"
echo "GraalVM version set to $GRAALVM"
fi
}

parse_args(){
@@ -81,10 +74,6 @@ parse_args(){
shift
QUARKUS="$1"
;;
--graalvm)
shift
GRAALVM="$1"
;;
*)
echo "❗ unknown argument: $1"
display_usage

0 comments on commit 05bd238

Please sign in to comment.