Enable building with JDK 11: use source/target 1.8
This commit is contained in:
parent
bb68ac75e2
commit
d847db4b8a
22
jsr-305-java8.patch
Normal file
22
jsr-305-java8.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
diff --git a/pom.xml b/pom.xml
|
||||||
|
index dcafc07..f5799e2 100644
|
||||||
|
--- a/pom.xml
|
||||||
|
+++ b/pom.xml
|
||||||
|
@@ -27,8 +27,15 @@
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
- <source>1.5</source>
|
||||||
|
- <target>1.5</target>
|
||||||
|
+ <source>1.8</source>
|
||||||
|
+ <target>1.8</target>
|
||||||
|
+ </configuration>
|
||||||
|
+ </plugin>
|
||||||
|
+ <plugin>
|
||||||
|
+ <groupId>org.apache.maven.plugins</groupId>
|
||||||
|
+ <artifactId>maven-javadoc-plugin</artifactId>
|
||||||
|
+ <configuration>
|
||||||
|
+ <source>1.8</source>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
@ -1,6 +1,6 @@
|
|||||||
Name: jsr-305
|
Name: jsr-305
|
||||||
Version: 0
|
Version: 0
|
||||||
Release: 0.27.20130910svn%{?dist}
|
Release: 0.28.20130910svn%{?dist}
|
||||||
Summary: Correctness annotations for Java code
|
Summary: Correctness annotations for Java code
|
||||||
|
|
||||||
# The majority of code is BSD-licensed, but some Java sources
|
# The majority of code is BSD-licensed, but some Java sources
|
||||||
@ -18,6 +18,8 @@ Source0: jsr-305-20130910svn.tgz
|
|||||||
# File containing URL to CC-BY license text
|
# File containing URL to CC-BY license text
|
||||||
Source1: NOTICE-CC-BY.txt
|
Source1: NOTICE-CC-BY.txt
|
||||||
|
|
||||||
|
Patch0: %{name}-java8.patch
|
||||||
|
|
||||||
BuildRequires: maven-local
|
BuildRequires: maven-local
|
||||||
|
|
||||||
%package javadoc
|
%package javadoc
|
||||||
@ -34,6 +36,7 @@ This package contains the API documentation for %{name}.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}
|
%setup -q -n %{name}
|
||||||
cp %{SOURCE1} NOTICE-CC-BY
|
cp %{SOURCE1} NOTICE-CC-BY
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%mvn_file :ri %{name}
|
%mvn_file :ri %{name}
|
||||||
%mvn_alias :ri com.google.code.findbugs:jsr305
|
%mvn_alias :ri com.google.code.findbugs:jsr305
|
||||||
@ -57,6 +60,9 @@ cp %{SOURCE1} NOTICE-CC-BY
|
|||||||
%license ri/LICENSE
|
%license ri/LICENSE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat May 23 2020 Richard Fearn <richardfearn@gmail.com> - 0-0.28.20130910svn
|
||||||
|
- Enable building with JDK 11: use source/target 1.8
|
||||||
|
|
||||||
* Sun Feb 02 2020 Richard Fearn <richardfearn@gmail.com> - 0-0.27.20130910svn
|
* Sun Feb 02 2020 Richard Fearn <richardfearn@gmail.com> - 0-0.27.20130910svn
|
||||||
- Use %%license
|
- Use %%license
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user