You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a situation where leaf application modules in a multi-module/Reactor build target Java 11, but a particular module needs to continue being able to run in Java 8 runtime environments, thus other library modules in the build that it depends on must also target 8.
I hoped that the enforceBytecodeVersion rule in extra-enforcer-rules would help to enforce this, but I tried the following configuration and the rule does not fail when class files of other modules that the one in question depends on are verifiably built with <release>11</release> / show major bytecode version 55 from javap.
So from cursory appearance, it seems the rule does not consider Reactor module dependencies. I didn't check implementation, I'm not acquainted with Maven plugin APIs, so apologies if I'm overlooking something.
The text was updated successfully, but these errors were encountered:
I have a situation where leaf application modules in a multi-module/Reactor build target Java 11, but a particular module needs to continue being able to run in Java 8 runtime environments, thus other library modules in the build that it depends on must also target 8.
I hoped that the
enforceBytecodeVersion
rule inextra-enforcer-rules
would help to enforce this, but I tried the following configuration and the rule does not fail when class files of other modules that the one in question depends on are verifiably built with<release>11</release>
/ show major bytecode version 55 fromjavap
.(also tried
<maxJavaMajorVersionNumber>52</maxJavaMajorVersionNumber>
)So from cursory appearance, it seems the rule does not consider Reactor module dependencies. I didn't check implementation, I'm not acquainted with Maven plugin APIs, so apologies if I'm overlooking something.
The text was updated successfully, but these errors were encountered: