From 78e229a273c78189a237b0ab7fa5e659a7341a2a Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Tue, 18 Jan 2022 16:10:49 +0100 Subject: [PATCH] Add Homebrew packager for CLI release and enable SDKMAN! announcement --- devtools/cli/distribution/jreleaser.yml | 14 ++++++---- docs/src/main/asciidoc/cli-tooling.adoc | 36 ++++++++++++++++++++++++- 2 files changed, 44 insertions(+), 6 deletions(-) diff --git a/devtools/cli/distribution/jreleaser.yml b/devtools/cli/distribution/jreleaser.yml index 42cfb1c8592f1..470f357a79819 100644 --- a/devtools/cli/distribution/jreleaser.yml +++ b/devtools/cli/distribution/jreleaser.yml @@ -45,10 +45,12 @@ distributions: - path: target/quarkus-cli-{{projectVersion}}.tar.gz packagers: - #brew: - # active: ALWAYS - # extraProperties: - # javaSkip: true + brew: + active: ALWAYS + continueOnError: false + multiPlatform: true + extraProperties: + skipJava: true sdkman: active: ALWAYS continueOnError: false @@ -57,4 +59,6 @@ packagers: candidate: quarkus announce: - enabled: false + sdkman: + active: ALWAYS + candidate: quarkus diff --git a/docs/src/main/asciidoc/cli-tooling.adoc b/docs/src/main/asciidoc/cli-tooling.adoc index 4da05917ffec8..c3493ffeab2e0 100644 --- a/docs/src/main/asciidoc/cli-tooling.adoc +++ b/docs/src/main/asciidoc/cli-tooling.adoc @@ -17,10 +17,44 @@ include::./status-include.adoc[] You can install the Quarkus CLI via: +* <> * <> * <> -More alternatives such as https://brew.sh[Homebrew] will be made available soon. +More alternatives such as https://chocolatey.org[Chocolatey] will be made available soon. + +[[homebrew]] +=== Installing with Homebrew + +https://brew.sh[Homebrew] is a package manager for macOS (and Linux). + +You can use Homebrew to install (and update) the Quarkus CLI. + +[NOTE] +==== +Make sure you have a JDK installed before installing the Quarkus CLI. +We haven't added an explicit dependency as we wanted to make sure you could use your preferred JDK version. + +You can install a JDK with `brew install openjdk` for Java 17 or `brew install openjdk@11` for Java 11. +==== + +To install the Quarkus CLI using Homebrew, run the following command: + +[source,shell] +---- +brew install quarkusio/tap/quarkus +---- + +It will install the latest version of the Quarkus CLI. +This command can also be used to update the Quarkus CLI. + +Once installed `quarkus` will be in your `$PATH` and if you run `quarkus --version` it will print the installed version: + +[source,shell,subs=attributes+] +---- +quarkus --version +{quarkus-version} +---- [[jbang]] === Installing with JBang