Repository: hbase Updated Branches: refs/heads/branch-2 79607fda8 -> 0f5a250ac
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/4aa7ce39 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/4aa7ce39 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/4aa7ce39 Branch: refs/heads/branch-2 Commit: 4aa7ce399e28ddfd9af89fc6de2361daa4707141 Parents: 79607fd Author: Mike Drob <[email protected]> Authored: Wed Jun 7 13:55:47 2017 -0500 Committer: Sean Busbey <[email protected]> Committed: Tue Jun 20 01:10:53 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/4aa7ce39/hbase-assembly/pom.xml ---------------------------------------------------------------------- diff --git a/hbase-assembly/pom.xml b/hbase-assembly/pom.xml index aefb886..afa1ae5 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/4aa7ce39/hbase-spark/pom.xml ---------------------------------------------------------------------- diff --git a/hbase-spark/pom.xml b/hbase-spark/pom.xml index 93bc399..5d813ee 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/4aa7ce39/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 2934043..a725a8e 100644 --- a/pom.xml +++ b/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 -->
