From a9bd9c44c7ee840529d6581ef8d329469342e7d3 Mon Sep 17 00:00:00 2001 From: Damian Jankowski Date: Mon, 6 Oct 2025 11:18:31 +0200 Subject: [PATCH] switch from search.maven.org to central.sonatype.com solrsearch api in gh workflows --- .github/workflows/maven-pr.yml | 2 +- .github/workflows/maven-push.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-pr.yml b/.github/workflows/maven-pr.yml index 45630a7f88..4338bbefb9 100644 --- a/.github/workflows/maven-pr.yml +++ b/.github/workflows/maven-pr.yml @@ -49,7 +49,7 @@ jobs: if [[ ! $CODEGEN_VERSION =~ ^.*SNAPSHOT$ ]]; then # check release version exists - export CODEGEN_FOUND_JSON=`curl -s --max-time 60 --retry 15 --connect-timeout 20 https://search.maven.org/solrsearch/select?q=g:io.swagger.codegen.v3%20AND%20a:swagger-codegen%20AND%20v:${CODEGEN_VERSION}%20AND%20p:jar` + export CODEGEN_FOUND_JSON=`curl -s --max-time 60 --retry 15 --connect-timeout 20 https://central.sonatype.com/solrsearch/select?q=g:io.swagger.codegen.v3%20AND%20a:swagger-codegen%20AND%20v:${CODEGEN_VERSION}%20AND%20p:jar` export CODEGEN_FOUND=`echo ${CODEGEN_FOUND_JSON} | jq '.response.numFound'` echo "CODEGEN_FOUND" ${CODEGEN_FOUND} if [[ $CODEGEN_FOUND == '0' ]]; diff --git a/.github/workflows/maven-push.yml b/.github/workflows/maven-push.yml index aecff399e9..30c5578df8 100644 --- a/.github/workflows/maven-push.yml +++ b/.github/workflows/maven-push.yml @@ -52,7 +52,7 @@ jobs: if [[ ! $CODEGEN_VERSION =~ ^.*SNAPSHOT$ ]]; then # check release version exists - export CODEGEN_FOUND_JSON=`curl -s --max-time 60 --retry 15 --connect-timeout 20 https://search.maven.org/solrsearch/select?q=g:io.swagger.codegen.v3%20AND%20a:swagger-codegen%20AND%20v:${CODEGEN_VERSION}%20AND%20p:jar` + export CODEGEN_FOUND_JSON=`curl -s --max-time 60 --retry 15 --connect-timeout 20 https://central.sonatype.com/solrsearch/select?q=g:io.swagger.codegen.v3%20AND%20a:swagger-codegen%20AND%20v:${CODEGEN_VERSION}%20AND%20p:jar` export CODEGEN_FOUND=`echo ${CODEGEN_FOUND_JSON} | jq '.response.numFound'` echo "CODEGEN_FOUND" ${CODEGEN_FOUND} if [[ $CODEGEN_FOUND == '0' ]];