Skip to content

Commit

Permalink
Add modernizer to help with maintenance.
Browse files Browse the repository at this point in the history
  • Loading branch information
cstamas committed Feb 26, 2024
1 parent e66cd39 commit 3cafb9a
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,24 @@
<takari.release.gpg.skip>false</takari.release.gpg.skip>

<surefire.version>3.2.5</surefire.version>
<modernizer.version>2.8.0</modernizer.version>

<!-- To make project Idea friendly (release used, rest left for sanity) -->
<maven.compiler.release>${takari.javaSourceVersion}</maven.compiler.release>
<maven.compiler.source>${takari.javaSourceVersion}</maven.compiler.source>
<maven.compiler.target>${takari.javaSourceVersion}</maven.compiler.target>
</properties>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.gaul</groupId>
<artifactId>modernizer-maven-annotations</artifactId>
<version>${modernizer.version}</version>
</dependency>
</dependencies>
</dependencyManagement>

<build>
<pluginManagement>
<plugins>
Expand All @@ -132,6 +143,23 @@
<testJar>${takari.testJar}</testJar>
</configuration>
</plugin>
<plugin>
<groupId>org.gaul</groupId>
<artifactId>modernizer-maven-plugin</artifactId>
<version>${modernizer.version}</version>
<configuration>
<javaVersion>${takari.javaSourceVersion}</javaVersion>
</configuration>
<executions>
<execution>
<id>modernizer</id>
<goals>
<goal>modernizer</goal>
</goals>
<phase>process-sources</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
Expand Down Expand Up @@ -399,6 +427,10 @@
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.gaul</groupId>
<artifactId>modernizer-maven-plugin</artifactId>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 3cafb9a

Please sign in to comment.