update to Gradle 8.4
This commit is contained in:
parent
976e29947c
commit
f494db6721
3 changed files with 6 additions and 4 deletions
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
|
@ -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
|
||||
|
|
|
@ -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')
|
||||
}
|
||||
|
|
|
@ -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<? extends ClockEvent> eventClass = (Class<? extends ClockEvent>) 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());
|
||||
|
|
Loading…
Reference in a new issue