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 Dec 27, 2024
1 parent a3a79b5 commit ee9b6a8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkgs/development/tools/build-managers/gradle/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,14 @@ 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`.
# TODO: disabled for now due to https://github.com/Mic92/nix-update/issues/297
#"--version-regex=^v(\\d+\\.\\d+(?:\\.[1-9]\\d?)?)(\\.0)?$"
];
};
};

Expand Down

0 comments on commit ee9b6a8

Please sign in to comment.