I also think that is acceptable, only requires that our developers upgrade
JDK to at least 17?

On Mon, Nov 24, 2025 at 10:34 AM Haonan Hou <[email protected]> wrote:

> Hi Yuan,
>
> There is another solution to fix it. We can just bump the
> `google.java.format.version`
> to 1.28.0.
> After update the `google.java.format` to 1.28.0, the minimum JDK to run
> spotless will
> be 17. I think it is acceptable.
>
> BR,
> Haonan
>
>
>
> On 2025/11/23 03:32:40 Yuan Tian wrote:
> > Hi all,
> >
> > I've just set up a new development env for myself. While choosing the JDK
> > version, I found that JDK-25 has already been released, so I just
> > downloaded that and want to have a try.  However while packaging IoTDB
> > using `mvn clean package -pl distribution -am -DskipTests` commands, I
> got
> > the following error:
> >
> > [ERROR] Failed to execute goal
> > com.diffplug.spotless:spotless-maven-plugin:2.46.1:check (spotless-check)
> > on project external-api: Execution spotless-check of goal
> > com.diffplug.spotless:spotless-maven-plugin:2.46.1:check failed: An API
> > incompatibility was encountered while executing
> > com.diffplug.spotless:spotless-maven-plugin:2.46.1:check:
> > java.lang.NoSuchMethodError: 'java.util.Queue
> > com.sun.tools.javac.util.Log$DeferredDiagnosticHandler.getDiagnostics()'
> >
> > After some research, I've found that it may be because the current
> version
> > of spotless we used doesn't support JDK-25(mayve JDK-22, JDK-23, JDK-24
> are
> > all not supported).
> >
> > So if we need to skip these versions, just like we did that for jdk-8?
> >
> >
> > Best regards,
> > ------------------------------
> > Yuan Tian
> >
>

Reply via email to