From ea17ec917b4b6b40b3a1acddeb9666e777e7cc30 Mon Sep 17 00:00:00 2001 From: LSmyrnaios Date: Tue, 11 Jun 2024 11:59:46 +0300 Subject: [PATCH] - Set new version. - Update dependencies. --- build.gradle | 4 ++-- gradle/wrapper/gradle-wrapper.properties | 2 +- gradlew | 2 +- installAndRun.sh | 4 ++-- .../eu/openaire/urls_worker/components/ScheduledTasks.java | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/build.gradle b/build.gradle index 6f84353..691d22e 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ plugins { java { group = 'eu.openaire.urls_worker' - version = '2.1.12-SNAPSHOT' + version = '2.1.12' sourceCompatibility = JavaVersion.VERSION_1_8 } @@ -45,7 +45,7 @@ dependencies { exclude group: 'org.apache.commons', module: 'commons-compress' } - implementation group: 'com.google.guava', name: 'guava', version: '33.2.0-jre' + implementation group: 'com.google.guava', name: 'guava', version: '33.2.1-jre' // https://mvnrepository.com/artifact/com.google.code.gson/gson implementation 'com.google.code.gson:gson:2.11.0' diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index b82aa23..a441313 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.7-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/gradlew b/gradlew index 1aa94a4..b740cf1 100755 --- a/gradlew +++ b/gradlew @@ -55,7 +55,7 @@ # Darwin, MinGW, and NonStop. # # (3) This script is generated from the Groovy template -# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt # within the Gradle project. # # You can find Gradle at https://github.com/gradle/gradle/. diff --git a/installAndRun.sh b/installAndRun.sh index 7a78695..d2108fc 100755 --- a/installAndRun.sh +++ b/installAndRun.sh @@ -18,7 +18,7 @@ elif [[ $# -gt 1 ]]; then echo -e "Wrong number of arguments given: ${#} (more than 1)\nPlease execute it like: script.sh "; exit 2 fi -gradleVersion="8.7" +gradleVersion="8.8" shouldBeCarefulWithMaxHeap=0 # This is NOT a cmd-arg. @@ -50,7 +50,7 @@ if [[ justRun -eq 0 ]]; then #gradle tasks # For debugging installation #gradle -v # For debugging installation - gradle clean build # --refresh-dependencies # --info + gradle clean build --refresh-dependencies # --info else export PATH=/opt/gradle/gradle-${gradleVersion}/bin:$PATH # Make sure the gradle is still accessible (it usually isn't without the "export"). fi diff --git a/src/main/java/eu/openaire/urls_worker/components/ScheduledTasks.java b/src/main/java/eu/openaire/urls_worker/components/ScheduledTasks.java index 917dc9e..524f6c8 100644 --- a/src/main/java/eu/openaire/urls_worker/components/ScheduledTasks.java +++ b/src/main/java/eu/openaire/urls_worker/components/ScheduledTasks.java @@ -56,7 +56,7 @@ public class ScheduledTasks { } - @Scheduled(fixedDelay = 1) // Request the next batch immediately after the last one finishes. + @Scheduled(fixedDelay = 1) // Request the 1st batch as soon as the app starts and each next batch immediately after the last one finishes. public void handleNewAssignments() { if ( GeneralController.shouldShutdownWorker || AssignmentsHandler.shouldNotRequestMore ) {