mirror of
https://github.com/actions/setup-java.git
synced 2026-08-30 12:33:43 +01:00
Rename OpenJDK distribution to oracle-openjdk
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 2c93ae0c-bbf5-40f5-bf6e-40168d0e267f
This commit is contained in:
@@ -21,14 +21,14 @@ const OPENJDK_BASE_URL = 'https://jdk.java.net';
|
||||
|
||||
export class OpenJdkDistribution extends JavaBase {
|
||||
constructor(installerOptions: JavaInstallerOptions) {
|
||||
super('OpenJDK', installerOptions);
|
||||
super('Oracle OpenJDK', installerOptions);
|
||||
}
|
||||
|
||||
protected async findPackageForDownload(
|
||||
range: string
|
||||
): Promise<JavaDownloadRelease> {
|
||||
if (this.packageType !== 'jdk') {
|
||||
throw new Error('OpenJDK provides only the `jdk` package type');
|
||||
throw new Error('Oracle OpenJDK provides only the `jdk` package type');
|
||||
}
|
||||
|
||||
const arch = this.distributionArchitecture();
|
||||
|
||||
Reference in New Issue
Block a user