Skip to content

Commit

Permalink
Merge pull request #137 from kagkarlsson/provide_sources_for_shaded_c…
Browse files Browse the repository at this point in the history
…ronutils

Provide sources for shaded dependency cronutils
  • Loading branch information
kagkarlsson authored Sep 23, 2020
2 parents c7ac251 + bfef6a5 commit d08b14a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private void testExecuteUntilNoneLeft(int pollingLimit, int threads, int executi
Instant now = Instant.now();
OneTimeTask<Void> 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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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();
}
}
Expand Down
24 changes: 24 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,22 @@
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.1</version>
<configuration>
<createSourcesJar>true</createSourcesJar>
<shadeSourcesContent>true</shadeSourcesContent>
<artifactSet>
<includes>
<include>com.cronutils:*</include>
</includes>
</artifactSet>
<filters>
<filter>
<artifact>com.cronutils:*</artifact>
<excludes>
<exclude>CronUtilsI18N*.properties</exclude>
<exclude>checkstyle.xml</exclude>
</excludes>
</filter>
</filters>
<relocations>
<relocation>
<pattern>com.cronutils</pattern>
Expand Down Expand Up @@ -271,6 +282,19 @@
<dependency-plugin.failOnWarning>false</dependency-plugin.failOnWarning>
</properties>
</profile>
<profile>
<id>sources</id>
<build>
<plugins>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>release</id>
<build>
Expand Down

0 comments on commit d08b14a

Please sign in to comment.