File 0005-Use-local-maven-metadata.xml.patch of Package opensearch

From 88fdb24a541f314100bf0085647c9e4be6aaeb7e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@gmail.com>
Date: Mon, 18 Nov 2024 14:15:22 +0100
Subject: [PATCH 5/5] Use local maven-metadata.xml
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>
---
 build.gradle        | 2 +-
 server/build.gradle | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/build.gradle b/build.gradle
index 51e18ed2d46..cc605ece80c 100644
--- a/build.gradle
+++ b/build.gradle
@@ -205,7 +205,7 @@ tasks.register("verifyVersions") {
     // Read the list from maven central.
     // Fetch the metadata and parse the xml into Version instances because it's more straight forward here
     // rather than bwcVersion ( VersionCollection ).
-    new URL('https://repo1.maven.org/maven2/org/opensearch/opensearch/maven-metadata.xml').openStream().withStream { s ->
+    new URL('file:///home/abuild/rpmbuild/BUILD/src/OpenSearch-2.18.0/maven-metadata.xml').openStream().withStream { s ->
       BuildParams.bwcVersions.compareToAuthoritative(
         new XmlParser().parse(s)
           .versioning.versions.version
diff --git a/server/build.gradle b/server/build.gradle
index 48883974cd9..eb69694c0b3 100644
--- a/server/build.gradle
+++ b/server/build.gradle
@@ -182,7 +182,7 @@ def japicmpCompareTarget = System.getProperty("japicmp.compare.version")
 if (japicmpCompareTarget == null) { /* use latest released version */
     // Read the list from maven central.
     // Fetch the metadata and parse the xml into Version instances, pick the latest one
-    japicmpCompareTarget = new URL('https://repo1.maven.org/maven2/org/opensearch/opensearch/maven-metadata.xml').openStream().withStream { s ->
+    japicmpCompareTarget = new URL('file:///home/abuild/rpmbuild/BUILD/src/OpenSearch-2.18.0/maven-metadata.xml').openStream().withStream { s ->
         new XmlParser().parse(s)
            .versioning.versions.version
            .collect { it.text() }.findAll { it ==~ /\d+\.\d+\.\d+/ }
-- 
2.47.0

openSUSE Build Service is sponsored by