From f494db6721f14989b4e4bdc68d9e5e41eab213ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Prante?= Date: Thu, 19 Oct 2023 17:20:01 +0200 Subject: [PATCH] update to Gradle 8.4 --- gradle/wrapper/gradle-wrapper.properties | 2 +- settings.gradle | 4 ++-- src/main/java/org/xbib/event/clock/ClockEventManager.java | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index e30733a..8838ba9 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-rc-1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/settings.gradle b/settings.gradle index 1982256..3c48ee8 100644 --- a/settings.gradle +++ b/settings.gradle @@ -15,7 +15,7 @@ pluginManagement { dependencyResolutionManagement { versionCatalogs { libs { - version('gradle', '8.4-rc-1') + version('gradle', '8.4') version('groovy', '4.0.13') version('junit', '5.10.0') version('datastructures', '5.0.5') @@ -30,7 +30,7 @@ dependencyResolutionManagement { library('datastructures-json-tiny', 'org.xbib', 'datastructures-json-tiny').versionRef('datastructures') library('settings-api', 'org.xbib', 'settings-api').versionRef('datastructures') library('settings-datastructures-json', 'org.xbib', 'settings-datastructures-json').versionRef('datastructures') - library('time', 'org.xbib', 'time').version('2.3.0') + library('time', 'org.xbib', 'time').version('4.0.0') library('reactivestreams', 'org.reactivestreams', 'reactive-streams').version('1.0.3') library('rxjava3', 'io.reactivex.rxjava3', 'rxjava').version('3.0.3') } diff --git a/src/main/java/org/xbib/event/clock/ClockEventManager.java b/src/main/java/org/xbib/event/clock/ClockEventManager.java index 890ca72..3e8a9cf 100644 --- a/src/main/java/org/xbib/event/clock/ClockEventManager.java +++ b/src/main/java/org/xbib/event/clock/ClockEventManager.java @@ -44,12 +44,14 @@ public class ClockEventManager implements Closeable { String entry = entrySettings.get("entry"); if (entry != null) { try { - String className = entrySettings.get("class", ClockEvent.class.getName()); + String className = entrySettings.get("class"); if (className != null) { @SuppressWarnings("unchecked") Class eventClass = (Class) classLoader.loadClass(className); cronSchedule.add(className, CronExpression.parse(entry), new ClockEventService(eventBus, eventClass)); logger.log(Level.INFO, "cron job " + cronjobs.getKey() + " scheduled on " + entry + ", event class " + className); + } else { + logger.log(Level.WARNING, "no class specified"); } } catch (Exception e) { logger.log(Level.WARNING, "unable to schedule cron job " + cronjobs.getKey() + ", reason " + e.getMessage());