From 454e48099f60934943feea7282e16423cb02a68e Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Thu, 14 Apr 2022 11:29:28 +0300 Subject: [PATCH] Use quarkus-bom in jbang documentation Fixes: #24926 (cherry picked from commit a48723f69424bd3a3436b604ca733c551d6197fd) --- docs/src/main/asciidoc/scripting.adoc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/src/main/asciidoc/scripting.adoc b/docs/src/main/asciidoc/scripting.adoc index 61d8d73b4062a..b552a19e47cc6 100644 --- a/docs/src/main/asciidoc/scripting.adoc +++ b/docs/src/main/asciidoc/scripting.adoc @@ -28,7 +28,8 @@ Normally we would link to a Git repository to clone but in this case there is no [source,java,subs=attributes+] ---- //usr/bin/env jbang "$0" "$@" ; exit $? -//DEPS io.quarkus:quarkus-resteasy-reactive:{quarkus-version} +//DEPS io.quarkus.platform:quarkus-bom:{quarkus-version}@pom +//DEPS io.quarkus:quarkus-resteasy-reactive //JAVAC_OPTIONS -parameters //JAVA_OPTIONS -Djava.util.logging.manager=org.jboss.logmanager.LogManager @@ -105,20 +106,21 @@ You will find at the top a line looking like this: This line is what on Linux and macOS allows you to run it as a script. On Windows this line is ignored. -The next line +The next lines [source,java] ---- // //DEPS ---- -Is illustrating how you add dependencies to this script. This is a feature of JBang. +illustrate how you add dependencies to this script. This is a feature of JBang. -Go ahead and update this line to include the `quarkus-resteasy-reactive` dependency like so: +Go ahead and update this line to include the `quarkus-bom` and the `quarkus-resteasy-reactive` dependency like so: [source,java,subs=attributes+] ---- -//DEPS io.quarkus:quarkus-resteasy-reactive:{quarkus-version} +//DEPS io.quarkus.platform:quarkus-bom:{quarkus-version}@pom +//DEPS io.quarkus:quarkus-resteasy-reactive ---- Now, run `jbang quarkusapp.java` and you will see JBang resolving this dependency and building the jar with help from Quarkus' JBang integration.