You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tamas Cservenak (Jira)" <ji...@apache.org> on 2022/12/22 13:11:00 UTC

[jira] [Updated] (MPOM-387) Enforcer enforceBytecodeVersion applies to everything

     [ https://issues.apache.org/jira/browse/MPOM-387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tamas Cservenak updated MPOM-387:
---------------------------------
    Description: 
In ASF Parent POM the enforcer {{enforceBytecodeVersion}} is added without any special configuration, which IMHO is wrong.

For example, this rule prevents to use *Java 11 test-only dependencies* on a project that is otherwise Java 8.

IMHO, applying this rule on everything makes no sense, at lest test scope should be ignored (if not provided as well, as there one have no control what is provided as well).

  was:
In ASF Parent POM the enforcer {{enforceBytecodeVersion}} is added without any special configuration, which IMHO is wrong.

For example, this rule prevents to use Java 11 dependencies on a project that is otherwise Java8.

IMHO, applying this rule on everything makes no sense, at lest test scope should be ignored (if not provided as well, as there one have no control what is provided as well).


> Enforcer enforceBytecodeVersion applies to everything
> -----------------------------------------------------
>
>                 Key: MPOM-387
>                 URL: https://issues.apache.org/jira/browse/MPOM-387
>             Project: Maven POMs
>          Issue Type: Bug
>          Components: asf
>            Reporter: Tamas Cservenak
>            Priority: Major
>
> In ASF Parent POM the enforcer {{enforceBytecodeVersion}} is added without any special configuration, which IMHO is wrong.
> For example, this rule prevents to use *Java 11 test-only dependencies* on a project that is otherwise Java 8.
> IMHO, applying this rule on everything makes no sense, at lest test scope should be ignored (if not provided as well, as there one have no control what is provided as well).



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