Skip to content

Commit

Permalink
add enforcer check to slightly clarify failure if run on Java 11
Browse files Browse the repository at this point in the history
Situation cant be fully handled as quarkus-maven-plugin must target Java 11 for now
even though Quarkus requires Java 17, as only Maven 3.9.6+ can actually handle
plugins targeted to Java 17.

See quarkusio/quarkus#39358 and https://issues.apache.org/jira/browse/MNG-7913
  • Loading branch information
gemmellr committed Mar 12, 2024
1 parent 0b71133 commit 9906ef6
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<quarkus.platform.version>3.8.2</quarkus.platform.version>
<skipITs>true</skipITs>
<surefire-plugin.version>3.0.0-M7</surefire-plugin.version>
<maven-enforcer-plugin-version>3.4.1</maven-enforcer-plugin-version>
<artemis-version>2.31.2</artemis-version>

<!-- Helper properties for CI etc testing, allows using the extensions original bom rather than its one from io.quarkus.platform, useful when using Quarkus core directly instead. E.g:
Expand Down Expand Up @@ -131,6 +132,27 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>${maven-enforcer-plugin-version}</version>
<executions>
<execution>
<id>enforce-java-version</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireJavaVersion>
<version>[${maven.compiler.release},)</version>
<message>Java ${maven.compiler.release} or newer is required to use the quickstart.</message>
</requireJavaVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
Expand Down

0 comments on commit 9906ef6

Please sign in to comment.