File 0004-Use-local-maven-metadata.xml.patch of Package opensearch
From cdcd37f783729dc0dda45ffc3ee029011e9e0649 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 4/4] 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 556127dc086..6a701715d58 100644
--- a/build.gradle
+++ b/build.gradle
@@ -206,7 +206,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/opensearch-3.3.2-build/src/OpenSearch-3.3.2/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 69f3c59556f..5024451f6a5 100644
--- a/server/build.gradle
+++ b/server/build.gradle
@@ -172,7 +172,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/opensearch-3.3.2-build/src/OpenSearch-3.3.2/maven-metadata.xml').openStream().withStream { s ->
new XmlParser().parse(s)
.versioning.versions.version
.collect { it.text() }.findAll { it ==~ /\d+\.\d+\.\d+/ }
--
2.51.1