-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DependencyCheck >10 Causes bootBuildImage Task to Fail with Buildpack #7141
Comments
Do you have a simple project that reproduces this with the appropriate (Gradle?) configuration? I believe there are lots of ways one could configure/use buildpack (Spring Boot? other ways?) so probably need to be specific about the mechanism here. |
I generated a new default project from https://start.spring.io/ and added :
Then run: The following error:
Running Fedora 41, Docker version 27.3.1, spring-boot 3.3.5 For convinience, spring-boot-project with added plugin |
Thx. The root cause of the clash here is that spring boot buildpacks doesn't work properly with Apache HttpClient Gradle kotlin: buildscript {
dependencies {
constraints {
classpath("org.apache.httpcomponents.client5:httpclient5") {
version {
strictly("5.3.1") // Spring Boot Buildpacks at 3.3.5 isn't compatible with httpclient 5.4+ which ODC uses, until https://github.com/spring-projects/spring-boot/issues/42675 is available (via Spring Boot `3.4.0`+).
}
}
}
}
} I'm not sure if this will work properly with ODC though on older HttpClient, will need someone to experiment. This is already fixed in Spring Boot 3.4.0-RC1 via spring-projects/spring-boot#42675 so you'll probably need to wait for a Spring Boot release, or request a backport of the HttpClient |
Might also be caused by spring-projects/spring-boot#42952 which seems it will be fixed in |
Thank you very mutch, there is a lot going on in the paketo buildpacks, now when we know the cause we can manage. |
Fun thing with spring-boot and ODC - boot has a test configuration that ends up causing ODC to have a blank report. See dependency-check/dependency-check-gradle#410 (comment) We likely need to document this somewhere... |
Describe the bug
When using DependencyCheck version >10 with Buildpack, the
bootBuildImage
task fails due to a misleading Docker connection error. The error indicates that it is unable to connect to the Docker daemon, causing the build to terminate unexpectedly.Version of dependency-check used
The problem occurs using version >10 of the gradle plugin for DependencyCheck.
Log file
The log output of a build shows an error message:
To Reproduce
Steps to reproduce the behavior:
bootBuildImage
task in the build script.bootBuildImage
task execution.Expected behavior
The
bootBuildImage
task should complete successfully.The text was updated successfully, but these errors were encountered: