From 76dcc45b6c5ca74c3eef88399547b42467fc2dfd Mon Sep 17 00:00:00 2001 From: Piotr Rzysko Date: Sun, 12 Nov 2023 15:58:04 +0100 Subject: [PATCH] wip --- build.gradle | 6 ++++-- settings.gradle | 4 ---- src/test/java/org/simdjson/BenchmarkCorrectnessTest.java | 8 ++++++++ 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index 77633f4..aef9ac2 100644 --- a/build.gradle +++ b/build.gradle @@ -29,8 +29,10 @@ repositories { } java { - toolchain { - languageVersion = JavaLanguageVersion.of(18) + if (!JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_18)) { + toolchain { + languageVersion = JavaLanguageVersion.of(18) + } } withJavadocJar() withSourcesJar() diff --git a/settings.gradle b/settings.gradle index 88e1d4b..743e03f 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,5 +1 @@ -plugins { - id("org.gradle.toolchains.foojay-resolver-convention") version "0.7.0" -} - rootProject.name = 'simdjson-java' diff --git a/src/test/java/org/simdjson/BenchmarkCorrectnessTest.java b/src/test/java/org/simdjson/BenchmarkCorrectnessTest.java index d6deecf..a5410bd 100644 --- a/src/test/java/org/simdjson/BenchmarkCorrectnessTest.java +++ b/src/test/java/org/simdjson/BenchmarkCorrectnessTest.java @@ -16,6 +16,14 @@ public class BenchmarkCorrectnessTest { + @Test + public void testJavaVersion() { + System.out.println("JAVA_HOME: " + System.getenv("JAVA_HOME")); + System.out.println("JVM version: " + System.getProperty("java.version")); + System.out.println(Runtime.version()); + System.out.println(System.getProperty("java.home")); + } + @Test public void countUniqueTwitterUsersWithDefaultProfile() throws IOException { // given