[FLINK-29436][build] Upgrade spotless for running on JDK 17#20911
[FLINK-29436][build] Upgrade spotless for running on JDK 17#20911
Conversation
|
Could there be a bug in that spotless version that the skip parameter is being ignored? |
|
@zentol with this change I tested JDK 17 can work with spotless: gh pr checkout 20911
mvn -nsu spotless:apply... while it generates diff on:
And I pushed a second commit for the change. |
Signed-off-by: tison <wander4096@gmail.com>
|
It seems the version bump cause this configure not work, I will try to find a reasonable followup: <!-- disable spotless since we need copy hive code -->
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>Related issue: diffplug/spotless#1227 |
Signed-off-by: tison <wander4096@gmail.com>
This reverts commit 16c03fb.
|
Pushed a workaround on the plugin configs. I'm submitting a patch for upstream to avoid such a workaround. |
|
@zentol thanks for your reviewing. I've submitted a patch to the upstream diffplug/spotless#1353. Supposed 1) we're not in a hurry on this change 2) it is not easily to conflict with other patches 3) upstream uses auto-release after a patch is merged. I suggest after CI passes we wait a few days (e.g., after the Chinese National Day holiday I'll come back on Oct. 8th) to try to eliminate the workaround in this patch. |
|
Sure, let's wait for the release. |
Signed-off-by: tison <wander4096@gmail.com>
|
Upgrade to 2.27.1 and eliminate the workaround. Wait for the new CI report and merge. |
|
@flinkbot run azure |
|
Although test fails should be unrelated, IIRC someone said you should get CI passed to merge a patch, lol. Rerun. |
This blocker is fixed by: diffplug/spotless#1224 and diffplug/spotless#1228.