Skip to content

Commit

Permalink
use built in enforcer rule rather than a custom one to ban the use of…
Browse files Browse the repository at this point in the history
… system tests in other modules

Signed-off-by: Sam Barker <[email protected]>

rh-pre-commit.version: 2.0.1
rh-pre-commit.check-secrets: ENABLED
  • Loading branch information
SamBarker committed Nov 13, 2023
1 parent 0560cd4 commit 0b67d70
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 131 deletions.
39 changes: 0 additions & 39 deletions kroxylicious-enforcer-rules/pom.xml

This file was deleted.

This file was deleted.

26 changes: 1 addition & 25 deletions kroxylicious-systemtests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,35 +132,11 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<dependencies>
<dependency>
<groupId>io.kroxylicious</groupId>
<artifactId>kroxylicious-enforcer-rules</artifactId>
<version>0.4.0-SNAPSHOT</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>enforce-systemtest-isolation</id>
<configuration>
<rules>
<systemTestIsolationRule implementation="io.kroxylicious.enforcer.rules.SystemTestIsolationRule"/>
</rules>
</configuration>
<goals>
<goal>enforce</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
</build>
</project>
</project>
24 changes: 22 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,6 @@
</dependencyManagement>

<modules>
<module>kroxylicious-enforcer-rules</module>
<module>kroxylicious-kms</module>
<module>kroxylicious-kms-provider-kroxylicious-inmemory</module>
<module>kroxylicious-bom</module>
Expand Down Expand Up @@ -655,6 +654,27 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-systemtest-isolation</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<bannedDependencies>
<excludes>
<exclude>io.kroxylicious:kroxylicious-systemtests</exclude>
</excludes>
</bannedDependencies>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down Expand Up @@ -949,4 +969,4 @@
</build>
</profile>
</profiles>
</project>
</project>

0 comments on commit 0b67d70

Please sign in to comment.