Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enforce usage of JDK 17 at build time #615

Open
gnodet opened this issue Sep 28, 2024 · 3 comments
Open

Enforce usage of JDK 17 at build time #615

gnodet opened this issue Sep 28, 2024 · 3 comments
Milestone

Comments

@gnodet
Copy link
Contributor

gnodet commented Sep 28, 2024

Description

Enforce usage of JDK 17 at build time

Motivation

It seems required as indicated in the README...

Alternatives considered

No response

Additional context

No response

@gnodet gnodet added this to the 2.14.1 milestone Sep 28, 2024
@garydgregory
Copy link
Member

Using the Maven enforcer plugin?

@elecharny
Copy link
Contributor

@garydgregory Adding <level>ERROR</level> just does the trick:

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-enforcer-plugin</artifactId>
                <executions>
                    <execution>
                        <id>enforce-maven-version</id>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
                        <configuration>
                            <rules>
                                <requireMavenVersion>
                                    <version>${minimalMavenBuildVersion}</version>
                                </requireMavenVersion>
                                <requireJavaVersion>
                                    <level>ERROR</level>
                                    <version>${minimalJavaBuildVersion}</version>
                                </requireJavaVersion>
...

@garydgregory
Copy link
Member

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants