diff --git a/db-scheduler/src/test/java/com/github/kagkarlsson/scheduler/functional/ExecutorPoolTest.java b/db-scheduler/src/test/java/com/github/kagkarlsson/scheduler/functional/ExecutorPoolTest.java index d791a472..da0a1870 100644 --- a/db-scheduler/src/test/java/com/github/kagkarlsson/scheduler/functional/ExecutorPoolTest.java +++ b/db-scheduler/src/test/java/com/github/kagkarlsson/scheduler/functional/ExecutorPoolTest.java @@ -84,7 +84,7 @@ private void testExecuteUntilNoneLeft(int pollingLimit, int threads, int executi Instant now = Instant.now(); OneTimeTask task = TestTasks.oneTime("onetime-a", Void.class, TestTasks.DO_NOTHING); TestableRegistry.Condition condition = TestableRegistry.Conditions.completed(executionsToRun); - TestableRegistry registry = TestableRegistry.create().logEvents().waitConditions(condition).build(); + TestableRegistry registry = TestableRegistry.create().waitConditions(condition).build(); Scheduler scheduler = Scheduler.create(postgres.getDataSource(), task) .pollingLimit(pollingLimit) diff --git a/db-scheduler/src/test/java/com/github/kagkarlsson/scheduler/helper/ExecutionCompletedCondition.java b/db-scheduler/src/test/java/com/github/kagkarlsson/scheduler/helper/ExecutionCompletedCondition.java index 873d0383..868ad727 100644 --- a/db-scheduler/src/test/java/com/github/kagkarlsson/scheduler/helper/ExecutionCompletedCondition.java +++ b/db-scheduler/src/test/java/com/github/kagkarlsson/scheduler/helper/ExecutionCompletedCondition.java @@ -18,7 +18,7 @@ public ExecutionCompletedCondition(int numberCompleted) { @Override public void waitFor() { try { - LoggerFactory.getLogger(ExecutionCompletedCondition.class).info("Starting await for "+numberCompleted+" ExecutionCompleted"); + LoggerFactory.getLogger(ExecutionCompletedCondition.class).debug("Starting await for "+numberCompleted+" ExecutionCompleted"); completed.await(); } catch (InterruptedException e) { throw new RuntimeException(e); @@ -36,7 +36,7 @@ public void apply(StatsRegistry.CandidateStatsEvent e) { @Override public void apply(StatsRegistry.ExecutionStatsEvent e) { if (e == StatsRegistry.ExecutionStatsEvent.COMPLETED) { - LoggerFactory.getLogger(ExecutionCompletedCondition.class).info("Received event execution-completed, counting down"); + LoggerFactory.getLogger(ExecutionCompletedCondition.class).debug("Received event execution-completed, counting down"); completed.countDown(); } } diff --git a/pom.xml b/pom.xml index 046fd922..d9513c3b 100644 --- a/pom.xml +++ b/pom.xml @@ -156,11 +156,22 @@ maven-shade-plugin 3.2.1 + true + true com.cronutils:* + + + com.cronutils:* + + CronUtilsI18N*.properties + checkstyle.xml + + + com.cronutils @@ -271,6 +282,19 @@ false + + sources + + + + maven-javadoc-plugin + + + maven-source-plugin + + + + release