mirror of
https://github.com/actions/setup-java.git
synced 2026-07-02 10:25:40 +00:00
Compare commits
2 Commits
da4b2ea389
...
d6ae60086c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d6ae60086c | ||
|
|
21458133ed |
14
dist/setup/index.js
vendored
14
dist/setup/index.js
vendored
@ -124232,16 +124232,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) {
|
if (jdkVersion.split('.').length > 3) {
|
||||||
const jdkVersionNums = jdkVersion.split('.');
|
const jdkVersionNums = jdkVersion
|
||||||
const splitedJdkVersionList = jdkVersionNums.slice(0, 3);
|
.replace('+', '.')
|
||||||
if (jdkVersion.includes('+')) {
|
.split('.');
|
||||||
const buildParts = jdkVersion.split('+');
|
jdkVersion = (0, util_1.convertVersionToSemver)(`${jdkVersionNums.slice(0, 3).join('.')}.${jdkVersionNums[jdkVersionNums.length - 1]}`);
|
||||||
splitedJdkVersionList.push(buildParts[buildParts.length - 1]);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
splitedJdkVersionList.push(jdkVersionNums[jdkVersionNums.length - 1]);
|
|
||||||
}
|
|
||||||
jdkVersion = (0, util_1.convertVersionToSemver)(splitedJdkVersionList.join('.'));
|
|
||||||
}
|
}
|
||||||
for (const edition in archMap) {
|
for (const edition in archMap) {
|
||||||
eligibleVersions.push({
|
eligibleVersions.push({
|
||||||
|
|||||||
@ -150,18 +150,15 @@ export class DragonwellDistribution extends 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) {
|
if (jdkVersion.split('.').length > 3) {
|
||||||
const jdkVersionNums: string[] = jdkVersion.split('.');
|
const jdkVersionNums: string[] = jdkVersion
|
||||||
const splitedJdkVersionList: string[] = jdkVersionNums.slice(0, 3);
|
.replace('+', '.')
|
||||||
if (jdkVersion.includes('+')) {
|
.split('.');
|
||||||
const buildParts: string[] = jdkVersion.split('+');
|
jdkVersion = convertVersionToSemver(
|
||||||
splitedJdkVersionList.push(buildParts[buildParts.length - 1]);
|
`${jdkVersionNums.slice(0, 3).join('.')}.${
|
||||||
} else {
|
|
||||||
splitedJdkVersionList.push(
|
|
||||||
jdkVersionNums[jdkVersionNums.length - 1]
|
jdkVersionNums[jdkVersionNums.length - 1]
|
||||||
|
}`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
jdkVersion = convertVersionToSemver(splitedJdkVersionList.join('.'));
|
|
||||||
}
|
|
||||||
|
|
||||||
for (const edition in archMap) {
|
for (const edition in archMap) {
|
||||||
eligibleVersions.push({
|
eligibleVersions.push({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user