Daniel Stieglitz created NIFI-12428:
---------------------------------------
Summary: Create enforcer rule for max Java version on 1.X branch
Key: NIFI-12428
URL: https://issues.apache.org/jira/browse/NIFI-12428
Project: Apache NiFi
Issue Type: Improvement
Reporter: Daniel Stieglitz
Fix For: 1.25.0
I found it is possible to attempt to build the 1.x branch with Java 21 although
the build fails at /nifi-commons/nifi-hl7-query-language
with error message
{quote}[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile)
on project nifi-hl7-query-language: Compilation failure: Compilation failure:
[ERROR] error: Source option 7 is no longer supported. Use 8 or later.
[ERROR] error: Target option 7 is no longer supported. Use 8 or later.{quote}
There should be an enforcer rule on the maximum Java version which can be used
to prevent this. Currently there is only an enforcer rule on the minimum
version which is 1.8 (inherited from the Apache parent pom.xml.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)