This is an automated email from the ASF dual-hosted git repository. stoty pushed a commit to branch 4.x in repository https://gitbox.apache.org/repos/asf/phoenix.git
The following commit(s) were added to refs/heads/4.x by this push: new f1df239 PHOENIX-6309 : Use maven enforcer plugin to ban imports from illegal packages (as per project guidelines) f1df239 is described below commit f1df2391feb47e227de0f37555c4bc090c1af798 Author: Viraj Jasani <vjas...@apache.org> AuthorDate: Sun Jan 10 20:34:49 2021 +0530 PHOENIX-6309 : Use maven enforcer plugin to ban imports from illegal packages (as per project guidelines) --- pom.xml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/pom.xml b/pom.xml index 2d8b333..4d6ddd1 100644 --- a/pom.xml +++ b/pom.xml @@ -138,6 +138,7 @@ <maven-eclipse-plugin.version>2.9</maven-eclipse-plugin.version> <maven-build-helper-plugin.version>1.9.1</maven-build-helper-plugin.version> <maven-enforcer-plugin.version>3.0.0-M3</maven-enforcer-plugin.version> + <restrict-imports.enforcer.version>1.1.0</restrict-imports.enforcer.version> <maven-shade-plugin.version>3.2.4</maven-shade-plugin.version> <maven-project-info-reports-plugin.version>3.1.1</maven-project-info-reports-plugin.version> <spotbugs-maven-plugin.version>4.1.3</spotbugs-maven-plugin.version> @@ -417,6 +418,39 @@ <artifactId>protobuf-maven-plugin</artifactId> <version>${protobuf.plugin.version}</version> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-enforcer-plugin</artifactId> + <version>${maven-enforcer-plugin.version}</version> + <dependencies> + <dependency> + <groupId>de.skuzzle.enforcer</groupId> + <artifactId>restrict-imports-enforcer-rule</artifactId> + <version>${restrict-imports.enforcer.version}</version> + </dependency> + </dependencies> + <executions> + <execution> + <id>banned-illegal-imports</id> + <phase>process-sources</phase> + <goals> + <goal>enforce</goal> + </goals> + <configuration> + <rules> + <restrictImports implementation="de.skuzzle.enforcer.restrictimports.rule.RestrictImports"> + <includeTestCode>true</includeTestCode> + <reason>Use SLF4j for logging</reason> + <bannedImports> + <bannedImport>org.apache.commons.logging.Log</bannedImport> + <bannedImport>org.apache.commons.logging.LogFactory</bannedImport> + </bannedImports> + </restrictImports> + </rules> + </configuration> + </execution> + </executions> + </plugin> </plugins> </pluginManagement>