mirror of
https://github.com/actions/setup-java
synced 2024-12-22 21:22:41 +00:00
Update installer.ts
This commit is contained in:
parent
7455bac0c6
commit
2dc45a974d
1 changed files with 8 additions and 3 deletions
|
@ -149,9 +149,14 @@ 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) {
|
const jdkVersionNums: string[] = jdkVersion
|
||||||
jdkVersion = convertVersionToSemver(jdkVersion);
|
.replace('+', '.')
|
||||||
}
|
.split('.');
|
||||||
|
jdkVersion = convertVersionToSemver(
|
||||||
|
`${jdkVersionNums.slice(0, 3).join('.')}.${
|
||||||
|
jdkVersionNums[jdkVersionNums.length - 1]
|
||||||
|
}`
|
||||||
|
);
|
||||||
|
|
||||||
for (const edition in archMap) {
|
for (const edition in archMap) {
|
||||||
eligibleVersions.push({
|
eligibleVersions.push({
|
||||||
|
|
Loading…
Reference in a new issue