mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-31 17:22:13 +00:00
Fix any prerelease that != true or undefined
Previously the build would fail with duplicate versions because milestones and RCs had the same version with a different prerelease value. Now this is patched by changing the version to contain any prerelease value other than true and changing prerelease to true.
This commit is contained in:
parent
c4bff97fe8
commit
d6ccf679c4
@ -12,12 +12,16 @@ module.exports.register = function({ config }) {
|
||||
aggregate.displayVersion = `${aggregate.version}`
|
||||
delete aggregate.prerelease
|
||||
}
|
||||
if (aggregate.version === "5.6.1" &&
|
||||
else if (aggregate.version === "5.6.1" &&
|
||||
aggregate.prerelease == "-SNAPSHOT") {
|
||||
aggregate.version = "5.6.1"
|
||||
aggregate.displayVersion = `${aggregate.version}`
|
||||
delete aggregate.prerelease
|
||||
}
|
||||
else if (aggregate.prerelease && aggregate.prerelease != true) {
|
||||
aggregate.version += aggregate.prerelease
|
||||
aggregate.prerelease = true
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user