From 4b8d5f22de666e40bb1eb3423da8e4652b3ed6f4 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Wed, 5 Feb 2025 08:47:29 +0000 Subject: [PATCH] Remove Java 8-specific build configuration that will never apply With our Java 17 baseline, the build configuration that is only applicable when building with Java 8 will never be used. This commit removes it. Closes gh-44129 --- .../spring-boot-tools/spring-boot-loader-tools/build.gradle | 6 ------ 1 file changed, 6 deletions(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-loader-tools/build.gradle b/spring-boot-project/spring-boot-tools/spring-boot-loader-tools/build.gradle index 1cb5eaa8c60..1ec459b7d63 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-loader-tools/build.gradle +++ b/spring-boot-project/spring-boot-tools/spring-boot-loader-tools/build.gradle @@ -95,12 +95,6 @@ sourceSets { } } -compileJava { - if ((!project.hasProperty("toolchainVersion")) && JavaVersion.current() == JavaVersion.VERSION_1_8) { - options.compilerArgs += ['-Xlint:-sunapi', '-XDenableSunApiLintControl'] - } -} - plugins.withType(EclipsePlugin) { eclipse { classpath.file { merger ->