Add Docs + Distro Factory

This commit is contained in:
Gregory Mitchell 2024-06-05 16:00:38 -05:00
parent bee7c8545c
commit 07ea605e4b
No known key found for this signature in database
GPG key ID: 771A6C995A086B84
2 changed files with 16 additions and 1 deletions

View file

@ -8,6 +8,7 @@
- [Amazon Corretto](#Amazon-Corretto) - [Amazon Corretto](#Amazon-Corretto)
- [Oracle](#Oracle) - [Oracle](#Oracle)
- [Alibaba Dragonwell](#Alibaba-Dragonwell) - [Alibaba Dragonwell](#Alibaba-Dragonwell)
- [JetBrains](#JetBrains)
- [Installing custom Java package type](#Installing-custom-Java-package-type) - [Installing custom Java package type](#Installing-custom-Java-package-type)
- [Installing custom Java architecture](#Installing-custom-Java-architecture) - [Installing custom Java architecture](#Installing-custom-Java-architecture)
- [Installing custom Java distribution from local file](#Installing-Java-from-local-file) - [Installing custom Java distribution from local file](#Installing-Java-from-local-file)
@ -142,6 +143,19 @@ steps:
- run: java -cp java HelloWorldApp - run: java -cp java HelloWorldApp
``` ```
### JetBrains
**NOTE:** JetBrains only provides jdk and is only available for LTS versions 11 or later.
```yaml
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'jetbrains'
java-version: '11'
- run: java -cp java HelloWorldApp
```
## Installing custom Java package type ## Installing custom Java package type
```yaml ```yaml
steps: steps:

View file

@ -23,7 +23,8 @@ enum JavaDistribution {
Semeru = 'semeru', Semeru = 'semeru',
Corretto = 'corretto', Corretto = 'corretto',
Oracle = 'oracle', Oracle = 'oracle',
Dragonwell = 'dragonwell' Dragonwell = 'dragonwell',
JetBrains = 'jetbrains',
} }
export function getJavaDistribution( export function getJavaDistribution(