mirror of
https://github.com/actions/setup-java.git
synced 2024-12-02 05:10:57 -05:00
Add Docs + Distro Factory
This commit is contained in:
parent
bee7c8545c
commit
07ea605e4b
2 changed files with 16 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
|||
- [Amazon Corretto](#Amazon-Corretto)
|
||||
- [Oracle](#Oracle)
|
||||
- [Alibaba Dragonwell](#Alibaba-Dragonwell)
|
||||
- [JetBrains](#JetBrains)
|
||||
- [Installing custom Java package type](#Installing-custom-Java-package-type)
|
||||
- [Installing custom Java architecture](#Installing-custom-Java-architecture)
|
||||
- [Installing custom Java distribution from local file](#Installing-Java-from-local-file)
|
||||
|
@ -142,6 +143,19 @@ steps:
|
|||
- 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
|
||||
```yaml
|
||||
steps:
|
||||
|
|
|
@ -23,7 +23,8 @@ enum JavaDistribution {
|
|||
Semeru = 'semeru',
|
||||
Corretto = 'corretto',
|
||||
Oracle = 'oracle',
|
||||
Dragonwell = 'dragonwell'
|
||||
Dragonwell = 'dragonwell',
|
||||
JetBrains = 'jetbrains',
|
||||
}
|
||||
|
||||
export function getJavaDistribution(
|
||||
|
|
Loading…
Reference in a new issue