diff --git a/0003-Port-to-maven-3.8.1.patch b/0003-Port-to-maven-3.8.1.patch new file mode 100644 index 0000000..2786be2 --- /dev/null +++ b/0003-Port-to-maven-3.8.1.patch @@ -0,0 +1,33 @@ +From 4dc38f384dab2d825e1ab6f7df018650b6aeded1 Mon Sep 17 00:00:00 2001 +From: Marian Koncek +Date: Fri, 17 Dec 2021 13:42:11 +0100 +Subject: [PATCH] Port to maven 3.8.1 + +--- + .../plugin/testing/stubs/StubArtifactRepository.java | 12 ++++++++++++ + 1 file changed, 12 insertions(+) + +diff --git a/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/StubArtifactRepository.java b/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/StubArtifactRepository.java +index 9a435b7..c13c3a8 100644 +--- a/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/StubArtifactRepository.java ++++ b/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/StubArtifactRepository.java +@@ -247,4 +247,16 @@ public class StubArtifactRepository + { + // no op + } ++ ++ @Override ++ public boolean isBlocked() ++ { ++ throw new UnsupportedOperationException(); ++ } ++ ++ @Override ++ public void setBlocked(boolean blocked) ++ { ++ throw new UnsupportedOperationException(); ++ } + } +-- +2.31.1 + diff --git a/maven-plugin-testing.spec b/maven-plugin-testing.spec index 5880153..4486bfb 100644 --- a/maven-plugin-testing.spec +++ b/maven-plugin-testing.spec @@ -2,7 +2,7 @@ Name: maven-plugin-testing Version: 3.3.0 -Release: 22%{?dist} +Release: 23%{?dist} Summary: Maven Plugin Testing License: ASL 2.0 URL: http://maven.apache.org/plugin-testing/ @@ -12,6 +12,7 @@ Source0: http://repo1.maven.org/maven2/org/apache/maven/plugin-testing/%{ Patch0: 0001-Port-to-plexus-utils-3.0.21.patch Patch1: 0002-Port-to-current-maven-artifact.patch +Patch2: 0003-Port-to-maven-3.8.1.patch BuildRequires: maven-local %if %{with bootstrap} @@ -50,6 +51,7 @@ The Maven Plugin Testing Harness provides mechanisms to manage tests on Mojo. %patch0 -p1 %patch1 -p1 +%patch2 -p1 %pom_remove_plugin :maven-enforcer-plugin %pom_remove_plugin :maven-site-plugin @@ -73,6 +75,9 @@ The Maven Plugin Testing Harness provides mechanisms to manage tests on Mojo. %doc LICENSE NOTICE %changelog +* Wed Jan 05 2022 Marian Koncek - 3.3.0-23 +- Port to maven 3.8.1 + * Tue Nov 02 2021 Mikolaj Izdebski - 3.3.0-22 - Set explicit Java compiler source/target levels to 1.7