Skip to content

Commit

Permalink
Hacks for spotless
Browse files Browse the repository at this point in the history
It is 11+
  • Loading branch information
cstamas committed May 23, 2024
1 parent d0f6bd1 commit 1cd0919
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -245,20 +245,20 @@
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-versions</id>
<id>enforce-maven</id>
<goals>
<goal>enforce</goal>
</goals>
<phase>validate</phase>
<configuration>
<failFast>true</failFast>
<rules>
<requireJavaVersion>
<version>[8,)</version>
</requireJavaVersion>
<requireMavenVersion>
<version>[3.3.9,)</version>
</requireMavenVersion>
<requireJavaVersion>
<version>1.8.0</version>
</requireJavaVersion>
</rules>
</configuration>
</execution>
Expand All @@ -268,6 +268,29 @@
</build>

<profiles>
<profile>
<id>spotless-workaround</id>
<activation>
<jdk>(,1.8]</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<executions>
<execution>
<id>default</id>
<goals>
<goal>${spotless.action}</goal>
</goals>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!-- START SNIPPET: release-profile -->
<profile>
<id>takari-release</id>
Expand Down

0 comments on commit 1cd0919

Please sign in to comment.