Use Gradle Java Toolchains
@@ -43,8 +43,13 @@ allprojects {
javadoc.options.addBooleanOption("Xdoclint:-missing", true)
javadoc.failOnError = false
- sourceCompatibility = 1.8
- targetCompatibility = 1.8
+ java {
+ withSourcesJar()
+ withJavadocJar()
+ toolchain {
+ languageVersion = JavaLanguageVersion.of(8)
+ }
+ }
plugins.apply "jacoco"
plugins.apply "io.freefair.lombok"
@@ -52,9 +57,6 @@ allprojects {
jacocoTestReport.reports.xml.required = true
- java.withSourcesJar()
- java.withJavadocJar()
-
test.useJUnitPlatform()
dependencies {
