Skip to content

Commit

Permalink
gradle: handle updates to .0 versions
Browse files Browse the repository at this point in the history
  • Loading branch information
liff committed Jan 16, 2025
1 parent 6082098 commit 29503f9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkgs/development/tools/build-managers/gradle/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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"
# Gradle’s .0 releases are tagged as `vX.Y.0`, but the actual
# release version omits the `.0`, so we’ll wanto to only capture
# the version up but not including the the trailing `.0`.
"--version-regex=^v(\\d+\\.\\d+(?:\\.[1-9]\\d?)?)(\\.0)?$"
];
};
};

Expand Down

0 comments on commit 29503f9

Please sign in to comment.