diff options
author | jonmv <venstad@gmail.com> | 2022-05-31 17:14:48 +0200 |
---|---|---|
committer | jonmv <venstad@gmail.com> | 2022-05-31 17:15:16 +0200 |
commit | 3a38308920a645406dc8883df26f25d97ecbdeca (patch) | |
tree | 1431a620e9da94a9f8facae0c25b0942e7845344 /hosted-tenant-base | |
parent | 9aebfc50b7f0f967bb68e5e6986bc03afc469bd5 (diff) |
Forbid anything but jupiter-api on the right version
Diffstat (limited to 'hosted-tenant-base')
-rw-r--r-- | hosted-tenant-base/pom.xml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/hosted-tenant-base/pom.xml b/hosted-tenant-base/pom.xml index 7ce69da46e9..3b09df63b8a 100644 --- a/hosted-tenant-base/pom.xml +++ b/hosted-tenant-base/pom.xml @@ -223,16 +223,20 @@ </configuration> </execution> <execution> - <id>enforce-no-jupiter-compile-scope</id> + <id>enforce-just-our-jupiter</id> <goals> <goal>enforce</goal> </goals> <configuration> <rules> <bannedDependencies> - <!-- Fail validation for apps with junit-jupiter-api in compile scope. --> + <!-- Fail validation for apps with junit-jupiter-api in compile scope, or on wrong version. --> <excludes> <exclude>org.junit.jupiter:junit-jupiter-api:*:jar:compile</exclude> + <exclude>org.junit.jupiter:junit-jupiter-api:*:jar:provided</exclude> + <exclude>org.junit.jupiter:junit-jupiter-api:*:jar:runtime</exclude> + <exclude>org.junit.jupiter:junit-jupiter-api:(,${junit.version}):jar:*</exclude> + <exclude>org.junit.jupiter:junit-jupiter-api:(${junit.version},):jar:*</exclude> </excludes> </bannedDependencies> </rules> |