mirror of
https://github.com/actions/setup-java.git
synced 2024-12-01 21:00:56 -05:00
Fix Runtime Unrecognizable
This commit is contained in:
parent
07ea605e4b
commit
db1c6faf09
1 changed files with 3 additions and 0 deletions
|
@ -10,6 +10,7 @@ import {SemeruDistribution} from './semeru/installer';
|
||||||
import {CorrettoDistribution} from './corretto/installer';
|
import {CorrettoDistribution} from './corretto/installer';
|
||||||
import {OracleDistribution} from './oracle/installer';
|
import {OracleDistribution} from './oracle/installer';
|
||||||
import {DragonwellDistribution} from './dragonwell/installer';
|
import {DragonwellDistribution} from './dragonwell/installer';
|
||||||
|
import {JetBrainsDistribution} from "./jetbrains/installer";
|
||||||
|
|
||||||
enum JavaDistribution {
|
enum JavaDistribution {
|
||||||
Adopt = 'adopt',
|
Adopt = 'adopt',
|
||||||
|
@ -65,6 +66,8 @@ export function getJavaDistribution(
|
||||||
return new OracleDistribution(installerOptions);
|
return new OracleDistribution(installerOptions);
|
||||||
case JavaDistribution.Dragonwell:
|
case JavaDistribution.Dragonwell:
|
||||||
return new DragonwellDistribution(installerOptions);
|
return new DragonwellDistribution(installerOptions);
|
||||||
|
case JavaDistribution.JetBrains:
|
||||||
|
return new JetBrainsDistribution(installerOptions);
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue