JetBrains / JetBrainsRuntime

Runtime environment based on OpenJDK for running IntelliJ Platform-based products on Windows, macOS, and Linux
GNU General Public License v2.0
1.2k stars 186 forks source link

Suggestion: Provide JBR via SDKMAN? #136

Open markusheiden opened 2 years ago

markusheiden commented 2 years ago

Providing the JBR via https://sdkman.io/ would ease to install the most recent JBR and keep it up to date.

msievers commented 2 years ago

This would indeed be awesome.

Until then, you can at least sneak it in, so that it can be managed by sdk the same way every other supported version can. Simply download and unpack JBR into ~/.sdkman/candidates/java and give the extracted directory a name matching the sdk version schema, e.g. 17.0.2.b396.4-jbr.

It should then show up like

Unclassified  | >>> | 17.0.2.b396.4 | none    | local only | 17.0.2.b396.4-jbr   
              |     | 17.0.1        | none    | local only | 17.0.1-jbr          

and can be used like

sdk use java 17.0.2.b396.4-jbr