You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Daniel Stieglitz (Jira)" <ji...@apache.org> on 2023/12/01 16:10:00 UTC

[jira] [Updated] (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:all-tabpanel ]

Daniel Stieglitz updated NIFI-12428:
------------------------------------
    Status: Patch Available  (was: In Progress)

> 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)