From 9b57c5837dd529357ac162960ebb8aa087e1cf33ada9c1ca8172f20572d5ebc0 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Tue, 18 Jun 2024 08:01:59 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/maven-shared-utils?expand=0&rev=18 --- ...ore-compatibility-with-current-maven.patch | 82 ------------ maven-shared-utils-3.3.4-source-release.zip | 3 - maven-shared-utils-3.4.2-source-release.zip | 3 + maven-shared-utils-build.xml | 124 +----------------- maven-shared-utils.spec | 31 +---- 5 files changed, 13 insertions(+), 230 deletions(-) delete mode 100644 0001-Restore-compatibility-with-current-maven.patch delete mode 100644 maven-shared-utils-3.3.4-source-release.zip create mode 100644 maven-shared-utils-3.4.2-source-release.zip diff --git a/0001-Restore-compatibility-with-current-maven.patch b/0001-Restore-compatibility-with-current-maven.patch deleted file mode 100644 index 1dff7f3..0000000 --- a/0001-Restore-compatibility-with-current-maven.patch +++ /dev/null @@ -1,82 +0,0 @@ -From e3d2a29743e1b36beaf1063567da9dfd2e5a8aa8 Mon Sep 17 00:00:00 2001 -From: Michael Simacek -Date: Mon, 26 Feb 2018 16:21:04 +0100 -Subject: [PATCH] Restore compatibility with current maven - ---- - .../maven/shared/utils/logging/AnsiMessageBuilder.java | 18 ++++++++++++++++++ - .../maven/shared/utils/logging/MessageBuilder.java | 3 +++ - .../shared/utils/logging/PlainMessageBuilder.java | 18 ++++++++++++++++++ - 3 files changed, 39 insertions(+) - -diff --git a/src/main/java/org/apache/maven/shared/utils/logging/AnsiMessageBuilder.java b/src/main/java/org/apache/maven/shared/utils/logging/AnsiMessageBuilder.java -index 0103a6b..23b6d14 100644 ---- a/src/main/java/org/apache/maven/shared/utils/logging/AnsiMessageBuilder.java -+++ b/src/main/java/org/apache/maven/shared/utils/logging/AnsiMessageBuilder.java -@@ -153,4 +153,22 @@ class AnsiMessageBuilder - { - return ansi.toString(); - } -+ -+ @Override -+ public MessageBuilder debug(Object message) { -+ a(message); -+ return this; -+ } -+ -+ @Override -+ public MessageBuilder info(Object message) { -+ a(message); -+ return this; -+ } -+ -+ @Override -+ public MessageBuilder error(Object message) { -+ a(message); -+ return this; -+ } - } -diff --git a/src/main/java/org/apache/maven/shared/utils/logging/MessageBuilder.java b/src/main/java/org/apache/maven/shared/utils/logging/MessageBuilder.java -index b60bb4e..1dc2624 100644 ---- a/src/main/java/org/apache/maven/shared/utils/logging/MessageBuilder.java -+++ b/src/main/java/org/apache/maven/shared/utils/logging/MessageBuilder.java -@@ -26,6 +26,9 @@ package org.apache.maven.shared.utils.logging; - */ - public interface MessageBuilder - { -+ MessageBuilder debug( Object message ); -+ MessageBuilder info( Object message ); -+ MessageBuilder error( Object message ); - /** - * Append message content in success style. - * By default, bold green -diff --git a/src/main/java/org/apache/maven/shared/utils/logging/PlainMessageBuilder.java b/src/main/java/org/apache/maven/shared/utils/logging/PlainMessageBuilder.java -index 2eec001..5236e99 100644 ---- a/src/main/java/org/apache/maven/shared/utils/logging/PlainMessageBuilder.java -+++ b/src/main/java/org/apache/maven/shared/utils/logging/PlainMessageBuilder.java -@@ -139,4 +139,22 @@ class PlainMessageBuilder - { - return buffer.toString(); - } -+ -+ @Override -+ public MessageBuilder debug(Object message) { -+ a(message); -+ return this; -+ } -+ -+ @Override -+ public MessageBuilder info(Object message) { -+ a(message); -+ return this; -+ } -+ -+ @Override -+ public MessageBuilder error(Object message) { -+ a(message); -+ return this; -+ } - } --- -2.14.3 - diff --git a/maven-shared-utils-3.3.4-source-release.zip b/maven-shared-utils-3.3.4-source-release.zip deleted file mode 100644 index 316e17b..0000000 --- a/maven-shared-utils-3.3.4-source-release.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5cccf13be755eb5bca4de69d3e27a1221bc956c243d2811866c2ce77218d82c0 -size 249609 diff --git a/maven-shared-utils-3.4.2-source-release.zip b/maven-shared-utils-3.4.2-source-release.zip new file mode 100644 index 0000000..efabc7f --- /dev/null +++ b/maven-shared-utils-3.4.2-source-release.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0b72bbf60911e17398e9c0ce29866e4f13a26e8da4aa2e8304e73152ac4d4ef3 +size 246858 diff --git a/maven-shared-utils-build.xml b/maven-shared-utils-build.xml index ce86e18..b81836c 100644 --- a/maven-shared-utils-build.xml +++ b/maven-shared-utils-build.xml @@ -10,13 +10,14 @@ - + - + - + + @@ -24,10 +25,7 @@ - - - - + @@ -36,18 +34,6 @@ - - - - - - - - @@ -72,6 +58,7 @@ encoding="utf-8" optimize="false" deprecation="true" + release="${compiler.release}" target="${compiler.target}" verbose="false" fork="false" @@ -86,103 +73,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - =================================== WARNING =================================== - JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed. - =============================================================================== - - @@ -216,7 +106,7 @@ - + = 6 BuildRequires: jsr-305 -BuildRequires: plexus-classworlds -BuildRequires: plexus-utils -BuildRequires: sisu-plexus +BuildRequires: slf4j BuildRequires: unzip BuildArch: noarch -%if %{with tests} -BuildRequires: ant-junit -BuildRequires: apache-commons-lang3 -BuildRequires: maven-lib -BuildRequires: maven-plugin-testing-harness -BuildRequires: maven-resolver-api -%endif %description This project aims to be a functional replacement for plexus-utils in Maven. @@ -65,24 +53,11 @@ API documentation for %{name}. %setup -q cp %{SOURCE1} build.xml -%patch -P 0 -p1 - -%pom_change_dep :plexus-container-default org.eclipse.sisu:org.eclipse.sisu.plexus:0.9.0.M2 - %build mkdir -p lib -build-jar-repository -s lib commons-io jansi/jansi jsr305 \ - org.eclipse.sisu.plexus plexus/classworlds plexus/utils -%if %{with tests} - build-jar-repository -s lib commons-lang3 maven/maven-artifact maven/maven-core \ - maven/maven-model maven-plugin-testing/maven-plugin-testing-harness \ - maven-resolver/maven-resolver-api -%endif +build-jar-repository -s lib commons-io jansi/jansi slf4j/api jsr305 %{ant} \ -%if %{without tests} - -Dtest.skip=true \ -%endif jar javadoc %install