Enforce Java 11 in build gradle
@@ -5,9 +5,14 @@ plugins {
id "com.diffplug.gradle.spotless" version "4.5.1"
id 'maven-publish'
id 'signing'
+ id 'java'
}
-apply plugin: 'java'
+java {
+ toolchain {
+ languageVersion = JavaLanguageVersion.of(11)
+ }
+}
repositories {
mavenCentral()
