File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,13 @@ repositories {
2929}
3030
3131java {
32- toolchain {
33- languageVersion = JavaLanguageVersion.of(18)
32+ // It seems that specifying the minimum supported Java version while allowing the use of newer
33+ // ones isn't possible in Gradle. To test the library against multiple Java versions, the
34+ // workaround proposed in https://github.com/gradle/gradle/issues/16256 has been applied:
35+ if (!JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_18)) {
36+ toolchain {
37+ languageVersion = JavaLanguageVersion.of(18)
38+ }
3439 }
3540 withJavadocJar()
3641 withSourcesJar()
Original file line number Diff line number Diff line change 1- plugins {
2- id("org.gradle.toolchains.foojay-resolver-convention") version "0.7.0"
3- }
4-
51rootProject.name = 'simdjson-java'
You can’t perform that action at this time.
0 commit comments