#2 override javac source and target versions to fix builds with Java 11
Merged 3 years ago by sdgathman. Opened 3 years ago by decathorpe.
Unknown source master  into  master

file modified
+5 -2
@@ -2,7 +2,7 @@

  

  Name:           apache-commons-logging

  Version:        1.2

- Release:        20%{?dist}

+ Release:        21%{?dist}

  Summary:        Apache Commons Logging

  License:        ASL 2.0

  URL:            http://commons.apache.org/logging
@@ -72,7 +72,7 @@

  rm -rf src/test/java/org/apache/commons/logging/log4j/log4j12

  

  %build

- %mvn_build -- -Dcommons.osgi.symbolicName=org.apache.commons.logging

+ %mvn_build -- -Dcommons.osgi.symbolicName=org.apache.commons.logging -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8

  

  # The build produces more artifacts from one pom

  %mvn_artifact %{SOURCE2} target/commons-logging-%{version}-api.jar
@@ -86,6 +86,9 @@

  %doc PROPOSAL.html RELEASE-NOTES.txt

  

  %changelog

+ * Thu Jun 04 2020 Fabio Valentini <decathorpe@gmail.com> - 1.2-21

+ - Override javac source and target versions to fix builds with Java 11.

+ 

  * Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-20

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

  

This change makes the package build successfully with both java-1.8.0-openjdk and java-11-openjdk.

Pull-Request has been merged by sdgathman

3 years ago
Metadata