Loading dist/setup/index.js +3 Changes for dist/setup/index.js: 3 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -13889,6 +13889,9 @@ class MicrosoftDistributions extends base_installer_1.JavaBase { if (!this.stable) { throw new Error('Early access versions are not supported'); } if (this.packageType !== 'jdk') { throw new Error('Microsoft Build of OpenJDK provides only the `jdk` package type'); } const availableVersionsRaw = yield this.getAvailableVersions(); const opts = this.getPlatformOption(); const availableVersions = availableVersionsRaw.map(item => ({ docs/advanced-usage.md +11 Changes for docs/advanced-usage.md: 11 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -65,6 +65,17 @@ steps: - run: java -cp java HelloWorldApp ``` ### Microsoft ```yaml steps: - uses: actions/checkout@v2 - uses: actions/setup-java@v2 with: distribution: 'microsoft' java-version: '11' - run: java -cp java HelloWorldApp ``` ## Installing custom Java package type ```yaml steps: Loading src/distributions/microsoft/installer.ts +4 Changes for src/distributions/microsoft/installer.ts: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -45,6 +45,10 @@ export class MicrosoftDistributions extends JavaBase { throw new Error('Early access versions are not supported'); } if (this.packageType !== 'jdk') { throw new Error('Microsoft Build of OpenJDK provides only the `jdk` package type'); } const availableVersionsRaw = await this.getAvailableVersions(); const opts = this.getPlatformOption(); Loading Loading
dist/setup/index.js +3 Changes for dist/setup/index.js: 3 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -13889,6 +13889,9 @@ class MicrosoftDistributions extends base_installer_1.JavaBase { if (!this.stable) { throw new Error('Early access versions are not supported'); } if (this.packageType !== 'jdk') { throw new Error('Microsoft Build of OpenJDK provides only the `jdk` package type'); } const availableVersionsRaw = yield this.getAvailableVersions(); const opts = this.getPlatformOption(); const availableVersions = availableVersionsRaw.map(item => ({
docs/advanced-usage.md +11 Changes for docs/advanced-usage.md: 11 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -65,6 +65,17 @@ steps: - run: java -cp java HelloWorldApp ``` ### Microsoft ```yaml steps: - uses: actions/checkout@v2 - uses: actions/setup-java@v2 with: distribution: 'microsoft' java-version: '11' - run: java -cp java HelloWorldApp ``` ## Installing custom Java package type ```yaml steps: Loading
src/distributions/microsoft/installer.ts +4 Changes for src/distributions/microsoft/installer.ts: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -45,6 +45,10 @@ export class MicrosoftDistributions extends JavaBase { throw new Error('Early access versions are not supported'); } if (this.packageType !== 'jdk') { throw new Error('Microsoft Build of OpenJDK provides only the `jdk` package type'); } const availableVersionsRaw = await this.getAvailableVersions(); const opts = this.getPlatformOption(); Loading