You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Martijn Visser (Jira)" <ji...@apache.org> on 2026/09/24 10:01:00 UTC
[jira] [Updated] (FLINK-40785) Nightly snapshot deployment fails in spotless because google-java-format 1.28.0 does not run on JDK 11
[ https://issues.apache.org/jira/browse/FLINK-40785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martijn Visser updated FLINK-40785:
-----------------------------------
Labels: test-stability (was: )
> Nightly snapshot deployment fails in spotless because google-java-format 1.28.0 does not run on JDK 11
> ------------------------------------------------------------------------------------------------------
>
> Key: FLINK-40785
> URL: https://issues.apache.org/jira/browse/FLINK-40785
> Project: Flink
> Issue Type: Bug
> Components: Build System
> Affects Versions: 2.4.0
> Reporter: Martijn Visser
> Assignee: Martijn Visser
> Priority: Blocker
> Labels: test-stability
>
> Since FLINK-40704, {{cron_snapshot_deployment_maven}} fails on every master nightly before it deploys anything:
> {code}
> [ERROR] Failed to execute goal com.diffplug.spotless:spotless-maven-plugin:2.46.1:check (spotless-check) on project flink-annotations: Unable to check file /__w/1/s/flink-annotations/src/main/java/org/apache/flink/annotation/VisibleForTesting.java: java.lang.reflect.InvocationTargetException: com/google/googlejavaformat/java/JavaFormatterOptions$Style has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0 -> [Help 1]
> {code}
> {{aosp.version}} now defaults to 1.28.0 and is only 1.24.0 in the {{java11-target}} profile. The job runs on JDK 11, but {{deploy_staging_jars.sh}} is called without {{$PROFILE}}, so it gets 1.28.0. Locally on JDK 11, {{./mvnw spotless:check -pl flink-annotations}} fails the same way and passes with {{-Pjava11-target}}.
> Builds 79251, 79266, 79299, 79325, 79340 and 79371 failed this way; 79222 on the commit before passed. The last 2.4-SNAPSHOT on repository.apache.org is from 2026-09-18.
> https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=79371
--
This message was sent by Atlassian Jira
(v8.20.10#820010)