Package artifact id:org.springframework.boot

source code url: https://github.com/spring-projects/spring-boot/tree/v2.7.10

Issue Description: Failing while building spring-boot-starter-actuator version 2.7.10 using gradle build (org.springframework.boot:spring-boot-starter-actuator:2.7.10)

JDK Version: 1.8

Build CMD: gradle build

MVN Version: NA

gradle version - 8.x-

Error Log:

2024-04-30T09:07:07.178+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 2024-04-30T09:07:07.230+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception. 2024-04-30T09:07:07.267+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 2024-04-30T09:07:07.289+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Where: 2024-04-30T09:07:07.290+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Build file 'C:\code\code-48-main\org.springframework.bootspring-boot-starter-actuator2.7.10\code\spring-boot\buildSrc\build.gradle' line: 17 2024-04-30T09:07:07.290+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 2024-04-30T09:07:07.291+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong: 2024-04-30T09:07:07.291+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] A problem occurred evaluating project ':buildSrc'. 2024-04-30T09:07:07.291+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > C:\code\code-48-main\org.springframework.bootspring-boot-starter-actuator2.7.10\code\spring-boot\gradle.properties (The system cannot find the file specified)

attachement: build log attached (jdk 1.8) Failed_jdk_8.txt

OS: windows 10

Comment From: wilkinsona

While this is a different module, it almost certainly has the same underlying cause as https://github.com/spring-projects/spring-boot/issues/40578. Closing as a duplicate.