How update Java (openjdk) version?


How can I update Java (openjdk) version? I’m currently adding a step (script) to my workflow using the commands below:

brew tap AdoptOpenJDK/openjdk
brew cask install adoptopenjdk11

but once installed, the version is not applied/used in the other steps of my workflow.

Below is the result of the script after running the above commands:

| (1) Install Java                                                             |
| id: script                                                                   |
| version: 1.1.5                                                               |
| collection:                |
| toolkit: bash                                                                |
| time: 2019-10-15T19:06:54Z                                                   |
|                                                                              |
+ brew tap AdoptOpenJDK/openjdk
==> Tapping adoptopenjdk/openjdk
Cloning into '/usr/local/Homebrew/Library/Taps/adoptopenjdk/homebrew-openjdk'...
Tapped 20 casks (83 files, 82.9KB).
+ brew cask install adoptopenjdk11
==> Satisfying dependencies
==> Downloading
==> Downloading from
==> Verifying SHA-256 checksum for Cask 'adoptopenjdk11'.
==> Installing Cask adoptopenjdk11
==> Running installer for adoptopenjdk11; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
installer: Package name is AdoptOpenJDK
installer: Upgrading at base path /
installer: The upgrade was successful.
🍺  adoptopenjdk11 was successfully installed!


Update here?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Hi @rafaelcrvs!

Sorry for the huge delay. Can you please send us a build URL to one of these instances? So we can see what’s the actual behaviour, and how you are looking to use this. Thanks!