From 64a2aa1489b3483dfe71cd53638b3ac17a433a71 Mon Sep 17 00:00:00 2001 From: Chris Kelley Date: Mon, 6 Dec 2021 16:31:36 +0000 Subject: [PATCH] Change compilation source/target to Java 11 --- ...compilation-source-target-to-Java-11.patch | 37 +++++++++++++++++++ jackson-core.spec | 7 +++- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 0001-Change-compilation-source-target-to-Java-11.patch diff --git a/0001-Change-compilation-source-target-to-Java-11.patch b/0001-Change-compilation-source-target-to-Java-11.patch new file mode 100644 index 0000000..d90bcdc --- /dev/null +++ b/0001-Change-compilation-source-target-to-Java-11.patch @@ -0,0 +1,37 @@ +From b4fe5240180fef12bbd168686b3ac0ce3240acf8 Mon Sep 17 00:00:00 2001 +From: Chris Kelley +Date: Mon, 6 Dec 2021 12:11:57 +0000 +Subject: [PATCH] Change compilation source/target to Java 11 + +--- + pom.xml | 13 ++++++++----- + 1 file changed, 8 insertions(+), 5 deletions(-) + +diff --git a/pom.xml b/pom.xml +index 13d68726..17463201 100644 +--- a/pom.xml ++++ b/pom.xml +@@ -36,12 +36,15 @@ + + +- 1.6 +- 1.6 ++ --> ++ ++ 11 ++ 11 + +- 1.6 +- 1.6 ++ 11 + + com.fasterxml.jackson.core;version=${project.version}, + com.fasterxml.jackson.core.*;version=${project.version} +-- +2.33.1 + diff --git a/jackson-core.spec b/jackson-core.spec index 8f4a70a..94eb231 100644 --- a/jackson-core.spec +++ b/jackson-core.spec @@ -1,11 +1,12 @@ Name: jackson-core Version: 2.11.4 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Core part of Jackson License: ASL 2.0 URL: https://github.com/FasterXML/jackson-core Source0: %{url}/archive/%{name}-%{version}.tar.gz +Patch1: 0001-Change-compilation-source-target-to-Java-11.patch BuildRequires: maven-local BuildRequires: mvn(com.fasterxml.jackson:jackson-base:pom:) >= %{version} @@ -20,6 +21,7 @@ as basic shared abstractions. %prep %setup -q -n %{name}-%{name}-%{version} +%patch1 -p1 # Remove plugins unnecessary for RPM builds %pom_remove_plugin ":maven-enforcer-plugin" @@ -43,6 +45,9 @@ sed -i 's/\r//' LICENSE NOTICE %license LICENSE NOTICE %changelog +* Mon Dec 06 2021 Dogtag PKI Team - 2.11.4-5 +- Drop Java 1.6 support, compile with Java 11 + * Thu Jul 22 2021 Fedora Release Engineering - 2.11.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild