Skip to content

Commit

Permalink
Fallback to Java 15 on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
alvasw committed Oct 31, 2023
1 parent 7ae04bf commit 294fcb3
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.apache.tools.ant.taskdefs.condition.Os

plugins {
id 'java'
id 'jacoco'
Expand All @@ -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)
}
}
}

Expand Down

0 comments on commit 294fcb3

Please sign in to comment.