From affcd7aa6ffe7acebe7a9e3c594cf63102d905c2 Mon Sep 17 00:00:00 2001 From: Timofey Vasenin Date: Sun, 15 May 2022 21:13:41 +0700 Subject: [PATCH] Fix build with JDK 8+ - Disable DocLint (Java 8+) to make build pass for JDK8+. - Specify Release flag (Java 9+) to ensure Java 6 API compatibility. --- README.md | 2 ++ pom.xml | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/README.md b/README.md index 0dff4b6..785b611 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,8 @@ To build this project, use OpenJDK 8 or 11, together with Apache Maven 2.2.1 or mvn clean install +(JDK 11 is preferred due to better compatibility with Java 6 target API) + To use jai-imageio-core-jpeg2000 from a Maven project, add: diff --git a/pom.xml b/pom.xml index 8a8b07c..4dfc1a3 100644 --- a/pom.xml +++ b/pom.xml @@ -180,6 +180,7 @@ + none true true @@ -213,6 +214,15 @@ + + java-6-api + + [9,) + + + 6 + +