From e884e112e26a66e28fcbde3c5a8b0c9868475f31 Mon Sep 17 00:00:00 2001 From: Marco Vogt Date: Tue, 30 Jul 2024 11:44:57 +0200 Subject: [PATCH] Increase minimum Java version to 11 --- .github/workflows/ci.yml | 4 ++-- README.md | 4 +++- build.gradle | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c285526..435ced8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: # test against major Java versions: - java: [ 8, 11, 17 ] + java: [ 11, 17, 22 ] os: [ macos-latest, ubuntu-latest, windows-latest ] name: Java ${{ matrix.java }} @ ${{ matrix.os }} steps: @@ -33,4 +33,4 @@ jobs: # Restoring these files from a GitHub Actions cache might cause problems for future builds. run: | rm -f ~/.gradle/caches/modules-2/modules-2.lock - rm -f ~/.gradle/caches/modules-2/gc.properties \ No newline at end of file + rm -f ~/.gradle/caches/modules-2/gc.properties diff --git a/README.md b/README.md index f5b03ce..cd92764 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,12 @@ Reference implementation of an agent library written in Java. This library handles all the communication with [Chronos Control](https://github.com/Chronos-EaaS/Chronos-Control) including the upload of the results. It provides an interface with all necessary methods required for adding Chronos support to an existing evaluation client. +This library is compatible with Java version 11 and higher. + ## Getting Started * Chronos Agent is published to Maven Central. Make sure that you have `mavenCentral()` to the `repositories` in your gradle build file. -* Add `implementation group: 'org.chronos-eaas', name: 'chronos-agent', version: '2.4.2'` to your `dependencies`. +* Add `implementation group: 'org.chronos-eaas', name: 'chronos-agent', version: '2.5.0'` to your `dependencies`. * Extend the `AbstractChronosAgent` class, call `YourClass.start()` in your `main` method, and you are good to go! > Assuming that you already have a running [Chronos Control](https://github.com/Chronos-EaaS/Chronos-Control/) instance diff --git a/build.gradle b/build.gradle index 1181f73..ad575ca 100644 --- a/build.gradle +++ b/build.gradle @@ -21,8 +21,8 @@ description = "Chronos Agent" java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 + sourceCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_11 withJavadocJar() withSourcesJar() }