spring-projects / spring-security

Spring Security
http://spring.io/projects/spring-security
Apache License 2.0
8.45k stars 5.76k forks source link

Failing while building spring-security-core version 5.7.8 using ./gradlew build (org.springframework.security:spring-security-core:5.7.8) #14989

Closed shivsrivastava closed 1 week ago

shivsrivastava commented 2 weeks ago

Package artifact id:org.springframework.boot

source code url: https://github.com/spring-projects/spring-security/releases/tag/5.7.8

Issue Description: Failing while building spring-security-core version 5.7.8 using ./gradlew build (org.springframework.security:spring-security-core:5.7.8)

JDK Version: 1.8

Build CMD: ./gradlew build

MVN Version: NA

gradle version - NA

Error Log:

2024-04-30T09:10:13.898+0530 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Build buildSrc' completed 2024-04-30T09:10:13.900+0530 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Configure build' 2024-04-30T09:10:13.900+0530 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Configure build' completed 2024-04-30T09:10:13.934+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 2024-04-30T09:10:13.943+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception. 2024-04-30T09:10:13.945+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 2024-04-30T09:10:13.945+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong: 2024-04-30T09:10:13.945+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':buildSrc:compileJava'. 2024-04-30T09:10:13.946+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve all files for configuration ':buildSrc:compileClasspath'. 2024-04-30T09:10:13.946+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve io.projectreactor:reactor-core:3.5.0-M1. 2024-04-30T09:10:13.946+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Required by: 2024-04-30T09:10:13.946+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] project :buildSrc 2024-04-30T09:10:13.947+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve io.projectreactor:reactor-core:3.5.0-M1. 2024-04-30T09:10:13.947+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not get resource 'https://repo.spring.io/plugins-release/io/projectreactor/reactor-core/3.5.0-M1/reactor-core-3.5.0-M1.pom'. 2024-04-30T09:10:13.947+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not GET 'https://repo.spring.io/plugins-release/io/projectreactor/reactor-core/3.5.0-M1/reactor-core-3.5.0-M1.pom'. Received status code 401 from server:

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

OS: windows 10

sjohnr commented 1 week ago

Thanks for the report @shivsrivastava. Unfortunately, the build was configured to point to the plugins-release repo which is no longer accessible. As well, the 5.7.x generation is out of OSS support. You can however try the 5.7.12 release which includes gh-13245 to resolve this issue or any 5.8.x release which is still within OSS support at the moment.

I'm going to close this issue as a duplicate of gh-13245.