Skip to content
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

Updating to Spring Boot Kotlin DSL version 3.4.0 - Gradle wrong update #31823

Open
drakgoku opened this issue Dec 18, 2024 · 0 comments
Open

Comments

@drakgoku
Copy link

drakgoku commented Dec 18, 2024

Current Behavior

There is an issue with Kotline Gradle DSL in Spring Boot, when Gradle is updated. For some reason, the "gradle-wrapper.jar" file is not updated and always points to the previous version no matter how many times you update it via commands and even if you put later versions they do not compile because the .jar is pointing to an old version. I don't know if it has to do with the minor version.

The RedHat plugin tells us the confusion (what the hell is this doing here?)

When you go from version 3.3.5 (in my case) to version 3.4.0 for some reason the gradle gets lost in the previous version 3.3.5 (and this is not able to update correctly) and this messes up the RedHat plugin.

In the end, the solution I found is to remove the "gradle-wrapper.jar" and download the "gradle-wrapper.jar" from the website or from a new spring boot project.

Can you take a look at the post?
redhat-developer/vscode-java#3895
At first I thought it was a problem with the RedHat plugin, but it's more of a gradle issue. I mention it in the solution right there. Take your time, it's a bit strange.

Expected Behavior

The behavior I expect is that instead of doing it manually, when you use the command ./gradlew wrapper --gradle-version x.x.x the .jar is automatically modified correctly.

The solution, as I mentioned, gives me this soft warning:

[Incubating] Problems report is available at: file:///E:/Projects/Project%..../..../build/reports/problems/problems-report.html

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.11.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

Context (optional)

No response

Self-contained Reproducer Project

An example cannot be provided as this is a private project.

Gradle version

3.3.5 -> 3.4.0

Build scan URL (optional)

No response

Your Environment (optional)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant