Add automatic module name

This commit is contained in:
Mat Booth 2020-08-04 16:10:00 +01:00
parent 9203b010d2
commit 1e50c7d371

View File

@ -1,7 +1,7 @@
Name: junit
Epoch: 1
Version: 4.12
Release: 17%{?dist}
Release: 18%{?dist}
Summary: Java regression test package
License: EPL-1.0
URL: http://www.junit.org/
@ -82,6 +82,9 @@ sed s/@version@/%{version}/ src/main/java/junit/runner/Version.java.template >sr
# Ignore test that breaks on Java 11 due to unexpected extra annotations in the JDK standard library
sed -i -e '/providesAnnotatedMethodsSortedByName/i@Ignore' src/test/java/org/junit/runners/model/TestClassTest.java
# Set JPMS module name
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:configuration/pom:archive" "<manifestEntries><Automatic-Module-Name>junit</Automatic-Module-Name></manifestEntries>"
%mvn_file : %{name}
%build
@ -102,6 +105,9 @@ sed -i -e '/providesAnnotatedMethodsSortedByName/i@Ignore' src/test/java/org/jun
%doc doc/*
%changelog
* Tue Aug 04 2020 Mat Booth <mat.booth@redhat.com> - 1:4.12-18
- Add automatic module name
* Tue Aug 04 2020 Mat Booth <mat.booth@redhat.com> - 1:4.12-17
- Allow building on Java 11