Repository: hbase Updated Branches: refs/heads/master 7b6eb90ac -> af466bf72
HBASE-18176 Enforce no scala outside hbase-spark Signed-off-by: Sean Busbey <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/270f3177 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/270f3177 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/270f3177 Branch: refs/heads/master Commit: 270f317727ddb0395f3a9b3f23eeb7f978c6e6fc Parents: 7b6eb90 Author: Mike Drob <[email protected]> Authored: Wed Jun 7 13:55:47 2017 -0500 Committer: Sean Busbey <[email protected]> Committed: Mon Jun 19 16:36:42 2017 -0500 ---------------------------------------------------------------------- hbase-assembly/pom.xml | 16 ++++++++++++++++ hbase-spark/pom.xml | 12 +++++++++++- pom.xml | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/270f3177/hbase-assembly/pom.xml ---------------------------------------------------------------------- diff --git a/hbase-assembly/pom.xml b/hbase-assembly/pom.xml index 3036b9a..b0e6fb8 100644 --- a/hbase-assembly/pom.xml +++ b/hbase-assembly/pom.xml @@ -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> http://git-wip-us.apache.org/repos/asf/hbase/blob/270f3177/hbase-spark/pom.xml ---------------------------------------------------------------------- diff --git a/hbase-spark/pom.xml b/hbase-spark/pom.xml index 980cae0..b57e59a 100644 --- a/hbase-spark/pom.xml +++ b/hbase-spark/pom.xml @@ -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> http://git-wip-us.apache.org/repos/asf/hbase/blob/270f3177/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 81b9003..50b2f1d 100644 --- a/pom.xml +++ b/pom.xml @@ -970,6 +970,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 -->
