Skip to content

Commit

Permalink
[FLINK-34950] Disable spotless for Java 21+
Browse files Browse the repository at this point in the history
  • Loading branch information
snuyanzin authored Mar 27, 2024
1 parent c806d46 commit d719c95
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,30 @@ under the License.
</pluginManagement>
</build>
</profile>
<profile>
<id>java21</id>
<activation>
<jdk>[21,)</jdk>
</activation>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<configuration>
<!-- Current google format does not run on Java 21.
Also, currently there is no existing spotless version supporting both Java 8 and Java 21.
Don't upgrade it in this profile because it formats code differently.
Re-evaluate once support for Java 8 is dropped. -->
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
<profile>
<id>java11-target</id>
<build>
Expand Down

0 comments on commit d719c95

Please sign in to comment.