diff options
author | jonmv <venstad@gmail.com> | 2022-05-24 12:24:49 +0200 |
---|---|---|
committer | jonmv <venstad@gmail.com> | 2022-05-24 12:24:49 +0200 |
commit | b63967a62988effb098ebbabd339bb97174715b7 (patch) | |
tree | 2d65863af46f5730a97f97d5803ce0f8cb589283 /hosted-tenant-base | |
parent | f3c40af9152d7c6eb9616073626551cef258a52d (diff) |
Forbid JUnit Jupiter API in compile scope
Diffstat (limited to 'hosted-tenant-base')
-rw-r--r-- | hosted-tenant-base/pom.xml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/hosted-tenant-base/pom.xml b/hosted-tenant-base/pom.xml index ad61e1c28c0..7ce69da46e9 100644 --- a/hosted-tenant-base/pom.xml +++ b/hosted-tenant-base/pom.xml @@ -222,6 +222,22 @@ </rules> </configuration> </execution> + <execution> + <id>enforce-no-jupiter-compile-scope</id> + <goals> + <goal>enforce</goal> + </goals> + <configuration> + <rules> + <bannedDependencies> + <!-- Fail validation for apps with junit-jupiter-api in compile scope. --> + <excludes> + <exclude>org.junit.jupiter:junit-jupiter-api:*:jar:compile</exclude> + </excludes> + </bannedDependencies> + </rules> + </configuration> + </execution> </executions> </plugin> |