You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Matthias Pohl (Jira)" <ji...@apache.org> on 2023/10/17 12:37:00 UTC

[jira] [Created] (FLINK-33291) The release profile of Flink does include enforcing the Java version only in a "soft" way

Matthias Pohl created FLINK-33291:
-------------------------------------

             Summary: The release profile of Flink does include enforcing the Java version only in a "soft" way
                 Key: FLINK-33291
                 URL: https://issues.apache.org/jira/browse/FLINK-33291
             Project: Flink
          Issue Type: Bug
          Components: Build System
    Affects Versions: 1.17.1, 1.16.2, 1.18.0, 1.19.0
            Reporter: Matthias Pohl


The vote on 1.18.0-rc2 [revealed|https://lists.apache.org/thread/fbdl2w6wjmwk55y94ml91bpnhmh4rnm0] that we don't do proper JDK version enforcement in {{release}} profile of the Maven build.

This is added to ensure that Java 8 is used when releasing the artifacts. The current configuration sets the version as a "soft" requirement (see [documentation on version|https://cwiki.apache.org/confluence/display/MAVENOLD/Dependency+Mediation+and+Conflict+Resolution#DependencyMediationandConflictResolution-DependencyVersionRanges] which is referenced in the [Maven Enforcer Plugin website|https://maven.apache.org/enforcer/maven-enforcer-plugin/]).

We should use square brackets to enforce the JDK version. The same can be applied to the Maven version.



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