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 {
29
29
}
30
30
31
31
java {
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
+ }
34
39
}
35
40
withJavadocJar()
36
41
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
-
5
1
rootProject. name = ' simdjson-java'
You can’t perform that action at this time.
0 commit comments