Accepting request 961010 from Java:packages

3.1.0

OBS-URL: https://build.opensuse.org/request/show/961010
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/maven-reporting-impl?expand=0&rev=3
This commit is contained in:
Dominique Leuenberger 2022-03-11 20:41:19 +00:00 committed by Git OBS Bridge
commit 56d7ebf911
6 changed files with 72 additions and 81 deletions

View File

@ -1,72 +1,52 @@
From 2f414c5566febf44beb77c43340eafccad1547e2 Mon Sep 17 00:00:00 2001 --- maven-reporting-impl-3.1.0/pom.xml 2022-03-10 17:08:29.894389771 +0100
From: Mikolaj Izdebski <mizdebsk@redhat.com> +++ maven-reporting-impl-3.1.0/pom.xml 2022-03-10 17:09:12.654649105 +0100
Date: Tue, 17 Jul 2018 11:57:16 +0200 @@ -140,12 +140,6 @@
Subject: [PATCH] Remove dependency on junit-addons <version>4.13.1</version>
<scope>test</scope>
--- </dependency>
pom.xml | 6 ------ - <dependency>
.../apache/maven/reporting/AbstractMavenReportRenderer.java | 2 +- - <groupId>junit-addons</groupId>
.../maven/reporting/AbstractMavenReportRendererTest.java | 10 ++-------- - <artifactId>junit-addons</artifactId>
3 files changed, 3 insertions(+), 15 deletions(-) - <version>1.4</version>
- <scope>test</scope>
diff --git a/pom.xml b/pom.xml - </dependency>
index 239742e..dc75ecd 100644 </dependencies>
--- a/pom.xml
+++ b/pom.xml <build>
@@ -135,12 +135,6 @@ --- maven-reporting-impl-3.1.0/src/main/java/org/apache/maven/reporting/AbstractMavenReportRenderer.java 2022-03-10 17:08:29.894389771 +0100
<version>3.8.2</version> +++ maven-reporting-impl-3.1.0/src/main/java/org/apache/maven/reporting/AbstractMavenReportRenderer.java 2022-03-10 17:09:12.654649105 +0100
<scope>test</scope> @@ -599,7 +599,7 @@
</dependency> * @param text a text with or without the pattern <code>{text, url}</code>
- <dependency> * @return a map of text/href
- <groupId>junit-addons</groupId> */
- <artifactId>junit-addons</artifactId> - private static List<String> applyPattern( String text )
- <version>1.4</version> + static List<String> applyPattern( String text )
- <scope>test</scope> {
- </dependency> if ( StringUtils.isEmpty( text ) )
</dependencies> {
--- maven-reporting-impl-3.1.0/src/test/java/org/apache/maven/reporting/AbstractMavenReportRendererTest.java 2022-03-10 17:08:29.898389795 +0100
<build> +++ maven-reporting-impl-3.1.0/src/test/java/org/apache/maven/reporting/AbstractMavenReportRendererTest.java 2022-03-10 17:09:12.654649105 +0100
diff --git a/src/main/java/org/apache/maven/reporting/AbstractMavenReportRenderer.java b/src/main/java/org/apache/maven/reporting/AbstractMavenReportRenderer.java @@ -24,7 +24,8 @@
index 6f954ae..c11acd3 100644
--- a/src/main/java/org/apache/maven/reporting/AbstractMavenReportRenderer.java import junit.framework.Assert;
+++ b/src/main/java/org/apache/maven/reporting/AbstractMavenReportRenderer.java import junit.framework.TestCase;
@@ -597,7 +597,7 @@ public abstract class AbstractMavenReportRenderer -import junitx.util.PrivateAccessor;
* @param text a text with or without the pattern <code>{text, url}</code> +
* @return a map of text/href +import static org.apache.maven.reporting.AbstractMavenReportRenderer.applyPattern;
*/
- private static List<String> applyPattern( String text ) /**
+ static List<String> applyPattern( String text ) * Test case for some public method in AbstractMavenReportRenderer.
{ @@ -32,13 +33,6 @@
if ( StringUtils.isEmpty( text ) ) public class AbstractMavenReportRendererTest
{ extends TestCase
diff --git a/src/test/java/org/apache/maven/reporting/AbstractMavenReportRendererTest.java b/src/test/java/org/apache/maven/reporting/AbstractMavenReportRendererTest.java {
index cdb9299..e8dce8f 100644 - private static List<String> applyPattern( String pattern )
--- a/src/test/java/org/apache/maven/reporting/AbstractMavenReportRendererTest.java - throws Throwable
+++ b/src/test/java/org/apache/maven/reporting/AbstractMavenReportRendererTest.java - {
@@ -24,7 +24,8 @@ import java.util.List; - return (List<String>) PrivateAccessor.invoke( AbstractMavenReportRenderer.class, "applyPattern",
- new Class[] { String.class }, new Object[] { pattern } );
import junit.framework.Assert; - }
import junit.framework.TestCase; -
-import junitx.util.PrivateAccessor; private static void checkPattern( String pattern, String[] expectedResult ) throws Throwable
+ {
+import static org.apache.maven.reporting.AbstractMavenReportRenderer.applyPattern; List<String> result = applyPattern( pattern );
/**
* Test case for some public method in AbstractMavenReportRenderer.
@@ -32,13 +33,6 @@ import junitx.util.PrivateAccessor;
public class AbstractMavenReportRendererTest
extends TestCase
{
- private static List<String> applyPattern( String pattern )
- throws Throwable
- {
- return (List<String>) PrivateAccessor.invoke( AbstractMavenReportRenderer.class, "applyPattern",
- new Class[] { String.class }, new Object[] { pattern } );
- }
-
private static void checkPattern( String pattern, String[] expectedResult ) throws Throwable
{
List<String> result = applyPattern( pattern );
--
2.14.3

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9d9fab3ffa5271f569262b1fdc752d64021854a5f9be163293add5c51b32f0c2
size 43634

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e81e170d9666aa4e6880b23ba20c16de046387fa31726de837003ecd4b039d2b
size 47021

View File

@ -11,14 +11,14 @@
<property name="project.groupId" value="org.apache.maven.reporting"/> <property name="project.groupId" value="org.apache.maven.reporting"/>
<property name="project.artifactId" value="maven-reporting-impl"/> <property name="project.artifactId" value="maven-reporting-impl"/>
<property name="project.name" value="Apache Maven Reporting Implementation"/> <property name="project.name" value="Apache Maven Reporting Implementation"/>
<property name="project.version" value="3.0.0"/> <property name="project.version" value="3.1.0"/>
<property name="spec.version" value="3.0"/> <property name="spec.version" value="3.1"/>
<property name="project.organization.name" <property name="project.organization.name"
value="The Apache Software Foundation"/> value="The Apache Software Foundation"/>
<property name="compiler.source" value="1.6"/> <property name="compiler.source" value="1.7"/>
<property name="compiler.target" value="${compiler.source}"/> <property name="compiler.target" value="${compiler.source}"/>
<property name="build.finalName" <property name="build.finalName"

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Fri Mar 11 07:02:31 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Upgrade to version 3.1.0
* API sync with maven-reporting-api 3.1.0
- Modified patch:
* 0001-Remove-dependency-on-junit-addons.patch
+ rediff
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Mar 11 11:43:42 UTC 2020 - Fridrich Strba <fstrba@suse.com> Wed Mar 11 11:43:42 UTC 2020 - Fridrich Strba <fstrba@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package maven-reporting-impl # spec file for package maven-reporting-impl
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2022 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -18,13 +18,13 @@
%bcond_with tests %bcond_with tests
Name: maven-reporting-impl Name: maven-reporting-impl
Version: 3.0.0 Version: 3.1.0
Release: 0 Release: 0
Summary: Abstract classes to manage report generation Summary: Abstract classes to manage report generation
License: Apache-2.0 License: Apache-2.0
Group: Development/Libraries/Java Group: Development/Libraries/Java
URL: http://maven.apache.org/shared/%{name} URL: http://maven.apache.org/shared/%{name}
Source0: http://repo1.maven.org/maven2/org/apache/maven/reporting/%{name}/%{version}/%{name}-%{version}-source-release.zip Source0: https://dlcdn.apache.org/maven/reporting/%{name}-%{version}-source-release.zip
Source1: %{name}-build.xml Source1: %{name}-build.xml
Patch0: 0001-Remove-dependency-on-junit-addons.patch Patch0: 0001-Remove-dependency-on-junit-addons.patch
BuildRequires: ant BuildRequires: ant
@ -70,6 +70,8 @@ API documentation for %{name}.
cp %{SOURCE1} build.xml cp %{SOURCE1} build.xml
%patch0 -p1 %patch0 -p1
%pom_remove_parent
# integration tests try to download stuff from the internet # integration tests try to download stuff from the internet
# and therefore they don't work in Build Service # and therefore they don't work in Build Service
%pom_remove_plugin :maven-invoker-plugin %pom_remove_plugin :maven-invoker-plugin