Skip to content

Commit

Permalink
fix: Update README to state JDK 17 as minimum (+ update version of li…
Browse files Browse the repository at this point in the history
…brary 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
  • Loading branch information
sishbi authored Oct 16, 2024
1 parent 7627290 commit 326ddf0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ applications.

## Requirements

- Java 21 or later
- Java 17 or later
- Gradle or Maven

## Installation
Expand All @@ -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")
}
```

Expand All @@ -31,7 +31,7 @@ Add the following configuration to your `pom.xml` file:
<dependency>
<groupId>com.kodypay.grpc</groupId>
<artifactId>kody-clientsdk-java</artifactId>
<version>0.0.1</version>
<version>0.0.3</version>
</dependency>
```

Expand Down
3 changes: 1 addition & 2 deletions samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions samples/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -20,7 +20,7 @@ repositories {

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
languageVersion.set(JavaLanguageVersion.of(17))
vendor.set(JvmVendorSpec.ADOPTIUM)
}
}
Expand Down
2 changes: 1 addition & 1 deletion samples/src/main/java/terminal/TerminalJavaClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public List<Terminal> 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);
});
Expand Down

0 comments on commit 326ddf0

Please sign in to comment.