Enforce Java 11 or newer to build the project
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
- <id>enforce-dependency-rules</id>
+ <id>enforce-java-and-dependencies</id>
<goals>
<goal>enforce</goal>
</goals>
</excludes>
</bannedDependencies>
<dependencyConvergence />
+ <requireJavaVersion>
+ <version>[11,)</version>
+ </requireJavaVersion>
</rules>
</configuration>
</execution>
