Fallback to Java 15 on macOS

This commit is contained in:
Alva Swanson 2023-10-31 17:50:21 +01:00
parent 7ae04bfc39
commit 294fcb3459
No known key found for this signature in database
GPG Key ID: 004760E77F753090

View File

@ -1,3 +1,5 @@
import org.apache.tools.ant.taskdefs.condition.Os
plugins {
id 'java'
id 'jacoco'
@ -11,7 +13,11 @@ repositories {
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
if (Os.isFamily(Os.FAMILY_MAC)) {
languageVersion = JavaLanguageVersion.of(15)
} else {
languageVersion = JavaLanguageVersion.of(11)
}
}
}