mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 18:06:45 +00:00
add support for dragonwell
This commit is contained in:
parent
5ffc13f417
commit
ec1af222f0
8 changed files with 1724 additions and 1 deletions
|
@ -9,6 +9,7 @@ import {MicrosoftDistributions} from './microsoft/installer';
|
|||
import {SemeruDistribution} from './semeru/installer';
|
||||
import {CorrettoDistribution} from './corretto/installer';
|
||||
import {OracleDistribution} from './oracle/installer';
|
||||
import {DragonwellDistribution} from './dragonwell/installer';
|
||||
|
||||
enum JavaDistribution {
|
||||
Adopt = 'adopt',
|
||||
|
@ -21,7 +22,8 @@ enum JavaDistribution {
|
|||
Microsoft = 'microsoft',
|
||||
Semeru = 'semeru',
|
||||
Corretto = 'corretto',
|
||||
Oracle = 'oracle'
|
||||
Oracle = 'oracle',
|
||||
Dragonwell = 'dragonwell'
|
||||
}
|
||||
|
||||
export function getJavaDistribution(
|
||||
|
@ -60,6 +62,8 @@ export function getJavaDistribution(
|
|||
return new CorrettoDistribution(installerOptions);
|
||||
case JavaDistribution.Oracle:
|
||||
return new OracleDistribution(installerOptions);
|
||||
case JavaDistribution.Dragonwell:
|
||||
return new DragonwellDistribution(installerOptions);
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue