diff --git a/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs/src/test/java/org/kie/kogito/jobs/embedded/TestEventPublisher.java b/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs/src/test/java/org/kie/kogito/jobs/embedded/TestEventPublisher.java index f077205d54..bdf42f1719 100644 --- a/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs/src/test/java/org/kie/kogito/jobs/embedded/TestEventPublisher.java +++ b/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs/src/test/java/org/kie/kogito/jobs/embedded/TestEventPublisher.java @@ -20,6 +20,7 @@ import java.util.ArrayList; import java.util.Collection; +import java.util.Collections; import java.util.List; import java.util.concurrent.CountDownLatch; @@ -35,7 +36,7 @@ public class TestEventPublisher implements EventPublisher { private CountDownLatch latch; public List> getEvents() { - return events; + return Collections.unmodifiableList(events); } public TestEventPublisher() { @@ -56,6 +57,7 @@ public void publish(Collection> events) { public void setLatch(CountDownLatch latch) { this.latch = latch; + events = new ArrayList<>(); } } diff --git a/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs/src/test/resources/application.properties b/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs/src/test/resources/application.properties new file mode 100644 index 0000000000..b6eb3afa2b --- /dev/null +++ b/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs/src/test/resources/application.properties @@ -0,0 +1 @@ +quarkus.devservices.enabled=false \ No newline at end of file diff --git a/pom.xml b/pom.xml index f7c7f2d327..554fc18758 100644 --- a/pom.xml +++ b/pom.xml @@ -155,5 +155,41 @@ jitexecutor-native + + reproducible-build + + + reproducible + + + + + + org.apache.maven.plugins + maven-artifact-plugin + + + check-buildplan + + check-buildplan + + + validate + + + compare + + compare + + + install + + + + + +