From 326ddf0c753d322c34c7f0f4db694242bee4600f Mon Sep 17 00:00:00 2001 From: Simon Billingsley Date: Wed, 16 Oct 2024 09:21:55 +0100 Subject: [PATCH] fix: Update README to state JDK 17 as minimum (+ update version of library listed) (#9) ## **Associated JIRA tasks** . ## **What the code does.** fix: Update README to state JDK 17 as minimum + update version of library listed ## **Does this code change break backwards compatibility?.** No --- README.md | 6 +++--- samples/README.md | 3 +-- samples/build.gradle.kts | 4 ++-- samples/src/main/java/terminal/TerminalJavaClient.java | 2 +- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 851856a..3c171cc 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ applications. ## Requirements -- Java 21 or later +- Java 17 or later - Gradle or Maven ## Installation @@ -19,7 +19,7 @@ Add the following configuration to your `build.gradle` file: ```kts dependencies { - implementation("com.kodypay.grpc:kody-clientsdk-java:0.0.1") + implementation("com.kodypay.grpc:kody-clientsdk-java:0.0.3") } ``` @@ -31,7 +31,7 @@ Add the following configuration to your `pom.xml` file: com.kodypay.grpc kody-clientsdk-java - 0.0.1 + 0.0.3 ``` diff --git a/samples/README.md b/samples/README.md index 019fb1c..1bb0a6e 100644 --- a/samples/README.md +++ b/samples/README.md @@ -2,8 +2,7 @@ This project demonstrates how to use the Kody Java gRPC client to communicate with Kody payments gateway. ## Requirements -- Java 21 or later -- Github account +- Java 17 or later - Gradle ## Installation diff --git a/samples/build.gradle.kts b/samples/build.gradle.kts index 0aeb36d..84ad4ec 100644 --- a/samples/build.gradle.kts +++ b/samples/build.gradle.kts @@ -4,7 +4,7 @@ plugins { description = "Kody Java gRPC Client Sample" -val kodyClientVersion by extra("0.0.2") +val kodyClientVersion by extra("0.0.3") val protobufVersion by extra("4.27.3") val grpcVersion by extra("1.66.0") @@ -20,7 +20,7 @@ repositories { java { toolchain { - languageVersion.set(JavaLanguageVersion.of(21)) + languageVersion.set(JavaLanguageVersion.of(17)) vendor.set(JvmVendorSpec.ADOPTIUM) } } diff --git a/samples/src/main/java/terminal/TerminalJavaClient.java b/samples/src/main/java/terminal/TerminalJavaClient.java index 15c1a77..cf218ad 100644 --- a/samples/src/main/java/terminal/TerminalJavaClient.java +++ b/samples/src/main/java/terminal/TerminalJavaClient.java @@ -96,7 +96,7 @@ public List getTerminals() throws ExecutionException, InterruptedExcep return defaultTerminalId == null || t.getTerminalId().equals(defaultTerminalId); }) .findFirst() - .orElse(it.getFirst()) + .orElse(it.get(0)) .getTerminalId(); LOG.info("Selected terminal: {}", exTerminalId); });