summaryrefslogtreecommitdiffstats
path: root/vespa-dependencies-enforcer/pom.xml
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@yahooinc.com>2022-11-11 13:03:08 +0100
committerBjørn Christian Seime <bjorncs@yahooinc.com>2022-11-11 13:03:16 +0100
commit56b326a1257b5f44e2da3f283c3fbcfe5fa2663a (patch)
tree4d6d37457d2fc82ae17072f110c574a2fd2fbf4b /vespa-dependencies-enforcer/pom.xml
parent7fbe42d86205804e81fb290fdf21f5469c9f7414 (diff)
Add dependency enforcer
Compares all dependencies (including transitive) for all modules in Maven project.
Diffstat (limited to 'vespa-dependencies-enforcer/pom.xml')
-rw-r--r--vespa-dependencies-enforcer/pom.xml63
1 files changed, 63 insertions, 0 deletions
diff --git a/vespa-dependencies-enforcer/pom.xml b/vespa-dependencies-enforcer/pom.xml
new file mode 100644
index 00000000000..1735964ec62
--- /dev/null
+++ b/vespa-dependencies-enforcer/pom.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!-- Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+ http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>com.yahoo.vespa</groupId>
+ <artifactId>parent</artifactId>
+ <version>8-SNAPSHOT</version>
+ <relativePath>../parent/pom.xml</relativePath>
+ </parent>
+
+ <artifactId>vespa-dependencies-enforcer</artifactId>
+ <version>8-SNAPSHOT</version>
+ <packaging>pom</packaging>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <inherited>false</inherited>
+ <dependencies>
+ <dependency>
+ <groupId>com.yahoo.vespa</groupId>
+ <artifactId>vespa-enforcer-extensions</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+ <executions>
+ <execution>
+ <id>default-cli</id>
+ <goals>
+ <!-- To allow running 'mvn enforcer:enforce' from the command line -->
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <enforceDependencies implementation="com.yahoo.vespa.maven.plugin.enforcer.EnforceDependenciesAllProjects">
+ <specFile>allowed-maven-dependencies.txt</specFile>
+ <ignored>
+ <i>com.yahoo.vespa:*:*</i>
+ <i>ai.vespa:*:*</i>
+ </ignored>
+ </enforceDependencies>
+ </rules>
+ <fail>true</fail>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <properties>
+ <maven.javadoc.skip>true</maven.javadoc.skip>
+ <maven.deploy.skip>true</maven.deploy.skip>
+ <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
+ </properties>
+
+</project>