HBASE-18176 Enforce no scala outside hbase-spark
Signed-off-by: Sean Busbey <busbey@apache.org>
This commit is contained in:
parent
79607fda85
commit
4aa7ce399e
|
@ -37,6 +37,22 @@
|
|||
</properties>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-enforcer-plugin</artifactId>
|
||||
<executions>
|
||||
<!-- hbase-spark is ok in the assembly -->
|
||||
<execution>
|
||||
<id>banned-hbase-spark</id>
|
||||
<goals>
|
||||
<goal>enforce</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<skip>true</skip>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<!-- licensing info from our dependencies -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
|
|
|
@ -626,11 +626,11 @@
|
|||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<!-- purposefully have jsr 305 exclusion only warn in this module -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-enforcer-plugin</artifactId>
|
||||
<executions>
|
||||
<!-- purposefully have jsr 305 exclusion only warn in this module -->
|
||||
<execution>
|
||||
<id>banned-jsr305</id>
|
||||
<goals>
|
||||
|
@ -640,6 +640,16 @@
|
|||
<fail>false</fail>
|
||||
</configuration>
|
||||
</execution>
|
||||
<!-- scala is ok in the spark modules -->
|
||||
<execution>
|
||||
<id>banned-scala</id>
|
||||
<goals>
|
||||
<goal>enforce</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<skip>true</skip>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
|
32
pom.xml
32
pom.xml
|
@ -958,6 +958,38 @@
|
|||
</rules>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>banned-scala</id>
|
||||
<goals>
|
||||
<goal>enforce</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<rules>
|
||||
<bannedDependencies>
|
||||
<excludes>
|
||||
<exclude>org.scala-lang:scala-library</exclude>
|
||||
</excludes>
|
||||
<message>We don't allow Scala outside of the hbase-spark module, see HBASE-13992.</message>
|
||||
</bannedDependencies>
|
||||
</rules>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>banned-hbase-spark</id>
|
||||
<goals>
|
||||
<goal>enforce</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<rules>
|
||||
<bannedDependencies>
|
||||
<excludes>
|
||||
<exclude>org.apache.hbase:hbase-spark</exclude>
|
||||
</excludes>
|
||||
<message>We don't allow other modules to depend on hbase-spark, see HBASE-13992.</message>
|
||||
</bannedDependencies>
|
||||
</rules>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<!-- parent-module only plugins -->
|
||||
|
|
Loading…
Reference in New Issue