Added latest-stable script in order to fix issues with "milestone" releases

This commit is contained in:
Lorenzo Gallucci 2022-07-22 09:39:02 +02:00
parent 34e1e364cd
commit 6e620a3105
No known key found for this signature in database
GPG Key ID: A5E11DABE398EE7D

6
bin/latest-stable Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail
query="${1:-}"
asdf list all gradle "$query" | grep -ivE "(^Available version:|-src|-dev|-latest|-stm|[-\\.]rc|-milestone|-alpha|-beta|[-\\.]pre|-next|(a|b|c)[0-9]+|snapshot|master)" | sed 's/^[[:space:]]\+//' | tail -1