diff --git a/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy b/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy index c1669c0a72a..46b338c08ea 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy @@ -126,7 +126,7 @@ class BuildPlugin implements Plugin { // enforce Gradle version final GradleVersion currentGradleVersion = GradleVersion.current(); - final GradleVersion minGradle = GradleVersion.version('3.3') + final GradleVersion minGradle = GradleVersion.version('4.3') if (currentGradleVersion < minGradle) { throw new GradleException("${minGradle} or above is required to build elasticsearch") } @@ -444,13 +444,6 @@ class BuildPlugin implements Plugin { // hack until gradle supports java 9's new "--release" arg assert minimumJava == JavaVersion.VERSION_1_8 options.compilerArgs << '--release' << '8' - if (GradleVersion.current().getBaseVersion() < GradleVersion.version("4.1")) { - // this hack is not needed anymore since Gradle 4.1, see https://github.com/gradle/gradle/pull/2474 - doFirst { - sourceCompatibility = null - targetCompatibility = null - } - } } } }