You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2023/12/02 02:58:00 UTC

[jira] [Commented] (NIFI-12428) Create Enforcer rule for max Java version on 1.X branch

    [ https://issues.apache.org/jira/browse/NIFI-12428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17792296#comment-17792296 ] 

ASF subversion and git services commented on NIFI-12428:
--------------------------------------------------------

Commit d40cb369a3653db12f2713ac2e339b6340025b1a in nifi's branch refs/heads/support/nifi-1.x from dan-s1
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=d40cb369a3 ]

NIFI-12428 Set Enforcer Plugin to restrict building on Java 21

- Set allowed range from 1.8.0-251 to less than 21

This closes #8096

Signed-off-by: David Handermann <ex...@apache.org>


> 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
>            Assignee: Daniel Stieglitz
>            Priority: Minor
>             Fix For: 1.25.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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 (17) which can be used to prevent this. Currently there is only an enforcer rule on the minimum version 1.8 (version specified in the NIFI pom.xml as a property and the enforcer rule inherited from the Apache parent pom.xml).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)