Skip to content

Commit

Permalink
Merge pull request #22978 from gsmet/homebrew
Browse files Browse the repository at this point in the history
Add Homebrew packager for CLI release and enable SDKMAN! announcement
  • Loading branch information
gsmet authored Jan 18, 2022
2 parents 063a825 + 78e229a commit ba36001
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 6 deletions.
14 changes: 9 additions & 5 deletions devtools/cli/distribution/jreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -57,4 +59,6 @@ packagers:
candidate: quarkus

announce:
enabled: false
sdkman:
active: ALWAYS
candidate: quarkus
36 changes: 35 additions & 1 deletion docs/src/main/asciidoc/cli-tooling.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,44 @@ include::./status-include.adoc[]

You can install the Quarkus CLI via:

* <<homebrew,Homebrew>>
* <<jbang,JBang>>
* <<sdkman,SDKMAN!>>

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
Expand Down

0 comments on commit ba36001

Please sign in to comment.