Skip to content

Commit

Permalink
Friendly error message for JDK versions < 17 (issue #164) (#177)
Browse files Browse the repository at this point in the history
* feat: Adds a friendly message for JDKs < 17

* fix: Removing line break in error message.
  • Loading branch information
joaobertholino authored Nov 24, 2024
1 parent b4c7dd5 commit 6a33dcd
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,27 @@
</compilerArgs>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-java</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireJavaVersion>
<message>This build requires at least Java ${java.version}, update your JVM, and run the build again
</message>
<version>[${java.version},)</version>
</requireJavaVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 6a33dcd

Please sign in to comment.