From a713240a7afb9de8003212e85f03e88e7ac1aade Mon Sep 17 00:00:00 2001 From: uvmsci Date: Tue, 9 Dec 2025 15:48:01 +0100 Subject: [PATCH] build: updates url for central sonatype With the shutdown of the old OSSRH new versions are no longer available through the old search URL. The compatibility API that they created doesn't work exactly the same, i.e. it doesn't seem to return latestVersion in the response anymore. --- getVersion.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getVersion.sh b/getVersion.sh index d135d08..bbce53d 100755 --- a/getVersion.sh +++ b/getVersion.sh @@ -3,5 +3,5 @@ group="${1:-fish.focus.uvms.docker}" artifact="${2:-uvms-docker-wildfly-unionvms}" -curl -s https://search.maven.org/solrsearch/select\?q\=g:$group+AND+a:$artifact | grep -Po 'latestVersion.:.\K[^"]*' +curl -s https://central.sonatype.com/solrsearch/select\?q\=g:$group+AND+a:$artifact\&sort\=v+desc\&rows\=1 | grep -Po 'v.:.\K[^"]*'