Skip to content

Migrate patch-diff-report-tool to Version 21 #1017

@aclfe

Description

@aclfe

The patch-diff-report-tool in the contribution repo is configured for Java 17 (in its pom.xml)
https://github.com/checkstyle/contribution/blob/master/patch-diff-report-tool/pom.xml

but the Checkstyle master branch now requires Java 21.

I ran Github, generate report and it fails due to version mismatch. Logs attached here:

Error:  Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.6.2:enforce (enforce-versions) on project checkstyle: 
Error:  Rule 0: org.apache.maven.enforcer.rules.version.RequireJavaVersion failed with message:
Error:  Detected JDK /usr/lib/jvm/temurin-17-jdk-amd64 is version 17.0.17 which is not in the allowed range [21,).
Error:  -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.6.2:enforce (enforce-versions) on project checkstyle: 
Rule 0: org.apache.maven.enforcer.rules.version.RequireJavaVersion failed with message:
Detected JDK /usr/lib/jvm/temurin-17-jdk-amd64 is version 17.0.17 which is not in the allowed range [21,).
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:314)
Caused by: org.apache.maven.plugin.MojoExecutionException: 
Rule 0: org.apache.maven.enforcer.rules.version.RequireJavaVersion failed with message:
Detected JDK /usr/lib/jvm/temurin-17-jdk-amd64 is version 17.0.17 which is not in the allowed range [21,).

I believe this needs updating in order to make the github action work

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions