-
Notifications
You must be signed in to change notification settings - Fork 21
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
Gradle: failed to compute classpath #147
Comments
Sorry for the delay. What's happening is that the application is missing a What happens if you run
Note that If it is present in your machine, try running Let me know what you find. |
@serrg1994 I had this issue before. |
Good catch @JaneWardSandy! Thanks for sharing that. Let me check with the Spring Boot team and see how we should handle this. If building a WAR does not add those entries, then it seems like the buildpack shouldn't require them to be there. |
Looks like there is some talk of making Spring Boot executable WAR files have the same strict classpath ordering as executable JAR files. That should make the buildpack work if you are generating an executable WAR and want to build a native image. spring-projects/spring-boot#19875 When that issue is resolved, we can revisit it and if there are still problems work them out then. In the meantime, as was pointed out above. Make sure your project is building an executable JAR if you want to build native image binaries. |
When I try to build native image using command
./gradlew bootBuildImage
I get the next error:All logs:
Gradle build file
OS: MacOS 12.0.1
The text was updated successfully, but these errors were encountered: