From fdf4d9a89cc8d074e50f5532a656aa8c6f5d3e6f Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Tue, 19 Nov 2024 19:15:58 +0100 Subject: [PATCH] lower JDK version to 17 --- README.md | 39 +++++++++++++++++++++++++++++++++++++++ app/build.gradle.kts | 2 +- 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..58a0f91 --- /dev/null +++ b/README.md @@ -0,0 +1,39 @@ +# Bring Powersort to Java + +## Gradle + +### Setup + +Check which Java toolchains can be found by Gradle: + +```shell +./gradlew javaToolchains +``` + +This should include version >= 17, e.g.: + +``` + + N/A JDK 23-ga + | Location: /nix/store/48290hnlb13xmwjw9y16a1s785993bv7-openjdk-23-ga/lib/openjdk + | Language Version: 23 + | Vendor: N/A + | Architecture: amd64 + | Is JDK: true + | Detected by: Current JVM +``` + +### Tasks + +List all tasks: + +```shell +./gradlew tasks +``` + +## Test Cases + +Run the task "test": + +```shell +./gradlew test +``` diff --git a/app/build.gradle.kts b/app/build.gradle.kts index aae2a5c..f273257 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -28,7 +28,7 @@ dependencies { // Apply a specific Java toolchain to ease working on different environments. java { toolchain { - languageVersion = JavaLanguageVersion.of(23) + languageVersion = JavaLanguageVersion.of(17) } }