This is an automated email from the ASF dual-hosted git repository.
sjaranowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-parent.git
The following commit(s) were added to refs/heads/master by this push:
new ee7b711 [MPOM-387] Exclude test scope from enforcedBytecodeVersion
ee7b711 is described below
commit ee7b7113c33cf2951bde6091f09301ce2924e82e
Author: Matthias Bünger <[email protected]>
AuthorDate: Sat Nov 29 22:10:36 2025 +0100
[MPOM-387] Exclude test scope from enforcedBytecodeVersion
Ignore test dependencies with higher JDK version.
This allows test to use JDK 11, while the artifact targets Java 8.
closes #291
---
pom.xml | 1 +
1 file changed, 1 insertion(+)
diff --git a/pom.xml b/pom.xml
index 08fa211..11d3cce 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1206,6 +1206,7 @@ under the License.</licenseText>
<rules>
<enforceBytecodeVersion>
<maxJdkVersion>${javaVersion}</maxJdkVersion>
+ <ignoredScopes>test</ignoredScopes>
</enforceBytecodeVersion>
</rules>
<fail>true</fail>