Skip to content

Commit

Permalink
Added maven enforcer plugin and updated config of license maven plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
BalusC committed Jun 24, 2023
1 parent 4b2edb7 commit 3c76a63
Showing 1 changed file with 31 additions and 16 deletions.
47 changes: 31 additions & 16 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -200,28 +200,43 @@

<plugins>

<!-- Prevent wrong JDK from being used to build the project. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireJavaVersion>
<version>[1.7,9)</version>
</requireJavaVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>

<!-- Add missing license headers to source files. -->
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>4.1</version>
<configuration>
<header>license.txt</header>
<excludes>
<exclude>*.*</exclude>
</excludes>
<mapping>
<java>SLASHSTAR_STYLE</java>
</mapping>
<licenseSets>
<licenseSet>
<header>license.txt</header>
<excludes>
<exclude>*.*</exclude>
</excludes>
</licenseSet>
</licenseSets>
</configuration>
<executions>
<execution>
<phase>process-sources</phase>
<goals>
<goal>format</goal>
</goals>
</execution>
</executions>
</plugin>

<!-- Configure the JavaScript minifier. -->
Expand Down Expand Up @@ -289,7 +304,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.2</version>
<version>3.3.0</version>
<configuration>
<archive>
<manifest>
Expand Down

0 comments on commit 3c76a63

Please sign in to comment.