gradle: handle updates to .0 versions

This commit is contained in:
Olli Helenius
2025-01-16 12:33:30 +02:00
parent 6082098609
commit 29503f955b
@@ -276,7 +276,13 @@ rec {
// lib.optionalAttrs (updateAttrPath != null) {
updateScript = nix-update-script {
attrPath = updateAttrPath;
extraArgs = [ "--url=https://github.com/gradle/gradle" ];
extraArgs = [
"--url=https://github.com/gradle/gradle"
# Gradles .0 releases are tagged as `vX.Y.0`, but the actual
# release version omits the `.0`, so well wanto to only capture
# the version up but not including the the trailing `.0`.
"--version-regex=^v(\\d+\\.\\d+(?:\\.[1-9]\\d?)?)(\\.0)?$"
];
};
};