mirror of
https://github.com/actions/setup-java.git
synced 2024-11-12 04:48:03 +00:00
npm run build
This commit is contained in:
parent
2dc45a974d
commit
20ca5fe3b6
7
dist/setup/index.js
vendored
7
dist/setup/index.js
vendored
@ -124231,9 +124231,10 @@ class DragonwellDistribution extends base_installer_1.JavaBase {
|
|||||||
}
|
}
|
||||||
// Some version of Dragonwell JDK are numerated with help of non-semver notation (more then 3 digits).
|
// Some version of Dragonwell JDK are numerated with help of non-semver notation (more then 3 digits).
|
||||||
// Common practice is to transform excess digits to the so-called semver build part, which is prefixed with the plus sign, to be able to operate with them using semver tools.
|
// Common practice is to transform excess digits to the so-called semver build part, which is prefixed with the plus sign, to be able to operate with them using semver tools.
|
||||||
if (jdkVersion.split('.').length > 3) {
|
const jdkVersionNums = jdkVersion
|
||||||
jdkVersion = (0, util_1.convertVersionToSemver)(jdkVersion);
|
.replace('+', '.')
|
||||||
}
|
.split('.');
|
||||||
|
jdkVersion = (0, util_1.convertVersionToSemver)(`${jdkVersionNums.slice(0, 3).join('.')}.${jdkVersionNums[jdkVersionNums.length - 1]}`);
|
||||||
for (const edition in archMap) {
|
for (const edition in archMap) {
|
||||||
eligibleVersions.push({
|
eligibleVersions.push({
|
||||||
os: platform,
|
os: platform,
|
||||||
|
Loading…
Reference in New Issue
Block a user