Skip to content

Commit

Permalink
chore: move apache-rat-plugin and maven-enforcer-plugin to root pom
Browse files Browse the repository at this point in the history
  • Loading branch information
VGalaxies committed Oct 27, 2023
1 parent 9d25285 commit d81407b
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 71 deletions.
71 changes: 0 additions & 71 deletions hugegraph-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -408,77 +408,6 @@
</filesets>
</configuration>
</plugin>
<!-- Apache RAT for license check -->
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/*.versionsBackup</exclude>
<exclude>**/*.proto</exclude>
<exclude>**/*.log</exclude>
<exclude>**/*.txt</exclude>
<exclude>**/*.json</exclude>
<exclude>**/*.conf</exclude>
<exclude>**/*.map</exclude>
<exclude>**/*.properties</exclude>
<exclude>dist/**/*</exclude>
<exclude>**/assembly/static/bin/hugegraph.service</exclude>
<exclude>**/swagger-ui/**/*</exclude>
<exclude>scripts/dev/reviewers</exclude>
<exclude>scripts/dev/reviewers</exclude>
<exclude>**/*.md</exclude>
<exclude>**/dependency-reduced-pom.xml</exclude>
<exclude>**/logs/*.log</exclude>
<exclude>**/META-INF/**/*</exclude>
<exclude>**/target/*</exclude>
<exclude>style/*</exclude>
<exclude>ChangeLog</exclude>
<exclude>CONFIG.ini</exclude>
<exclude>GROUPS</exclude>
<exclude>OWNERS</exclude>
<!-- Git & GitHub -->
<exclude>.github/**/*</exclude>
<exclude>.gitignore</exclude>
<exclude>.gitattributes</exclude>
<!-- Intellij -->
<exclude>**/*.iml</exclude>
<exclude>**/*.iws</exclude>
<exclude>**/*.ipr</exclude>
<exclude>**/META-INF/MANIFEST.MF</exclude>
<!-- Maven -->
<exclude>.repository/**</exclude>
<exclude>**/.flattened-pom.xml</exclude>
</excludes>
<consoleOutput>true</consoleOutput>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-version</id>
<goals>
<goal>enforce</goal>
</goals>
<!-- no need to execute in child POMs -->
<inherited>false</inherited>
<configuration>
<rules>
<!-- TODO: uncomment for checking dependency conflicts -->
<!-- <DependencyConvergence/> -->
<requireJavaVersion>
<version>[1.8,12)</version>
</requireJavaVersion>
<requireMavenVersion>
<version>[3.5.0,)</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>

Expand Down
78 changes: 78 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,82 @@
<!-- <module>hugegraph-pd</module>-->
<!-- <module>hugegraph-store</module>-->
</modules>

<build>
<pluginManagement>
<plugins>
<!-- Apache RAT for license check -->
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/*.versionsBackup</exclude>
<exclude>**/*.proto</exclude>
<exclude>**/*.log</exclude>
<exclude>**/*.txt</exclude>
<exclude>**/*.json</exclude>
<exclude>**/*.conf</exclude>
<exclude>**/*.map</exclude>
<exclude>**/*.properties</exclude>
<exclude>dist/**/*</exclude>
<exclude>**/assembly/static/bin/hugegraph.service</exclude>
<exclude>**/swagger-ui/**/*</exclude>
<exclude>scripts/dev/reviewers</exclude>
<exclude>scripts/dev/reviewers</exclude>
<exclude>**/*.md</exclude>
<exclude>**/dependency-reduced-pom.xml</exclude>
<exclude>**/logs/*.log</exclude>
<exclude>**/META-INF/**/*</exclude>
<exclude>**/target/*</exclude>
<exclude>style/*</exclude>
<exclude>ChangeLog</exclude>
<exclude>CONFIG.ini</exclude>
<exclude>GROUPS</exclude>
<exclude>OWNERS</exclude>
<!-- Git & GitHub -->
<exclude>.github/**/*</exclude>
<exclude>.gitignore</exclude>
<exclude>.gitattributes</exclude>
<!-- Intellij -->
<exclude>**/*.iml</exclude>
<exclude>**/*.iws</exclude>
<exclude>**/*.ipr</exclude>
<exclude>**/META-INF/MANIFEST.MF</exclude>
<!-- Maven -->
<exclude>.repository/**</exclude>
<exclude>**/.flattened-pom.xml</exclude>
</excludes>
<consoleOutput>true</consoleOutput>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-version</id>
<goals>
<goal>enforce</goal>
</goals>
<!-- no need to execute in child POMs -->
<inherited>false</inherited>
<configuration>
<rules>
<!-- TODO: uncomment for checking dependency conflicts -->
<!-- <DependencyConvergence/> -->
<requireJavaVersion>
<version>[1.8,12)</version>
</requireJavaVersion>
<requireMavenVersion>
<version>[3.5.0,)</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>

0 comments on commit d81407b

Please sign in to comment.