[ 
https://issues.apache.org/jira/browse/FLINK-38387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sergey Nuyanzin resolved FLINK-38387.
-------------------------------------
    Fix Version/s: 2.2.0
       Resolution: Fixed

> Disable spotless for java 25
> ----------------------------
>
>                 Key: FLINK-38387
>                 URL: https://issues.apache.org/jira/browse/FLINK-38387
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Build System
>            Reporter: Sergey Nuyanzin
>            Assignee: Sergey Nuyanzin
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.2.0
>
>
> Currently attempt to build with jdk25 with enabled spotless fails as
> {noformat}
> Execution spotless-check of goal 
> com.diffplug.spotless:spotless-maven-plugin:2.43.0:check failed: An API 
> incompatibility was encountered while executing 
> com.diffplug.spotless:spotless-maven-plugin:2.43.0:check: 
> java.lang.NoSuchMethodError: 'java.util.Queue 
> com.sun.tools.javac.util.Log$DeferredDiagnosticHandler.getDiagnostics()'
> [ERROR] -----------------------------------------------------
> [ERROR] realm =    plugin>com.diffplug.spotless:spotless-maven-plugin:2.43.0
> [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> {noformat}
> this is not fixed yet in spotless itself, so just waiting for their fix 
> https://github.com/diffplug/spotless/issues/2468
> The main reason  for disabling is that the google java format supporting java 
> 25 requires minimum java17 like 
> https://github.com/google/google-java-format/releases/tag/v1.25.0
> while for java 25 it is required 
> https://github.com/google/google-java-format/releases/tag/v1.28.0



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to