Project - APPLICATION FAILED TO START, Deprecated Gradle features, Is this fatal issue...........?

#Foreword

"To tell you the conclusion first, this comes from my lack of experience, I found wrong cause for this problem, which took me several hours."


My team project will get started next week. Now I am trying to set Project initial setup, and I added Spring Web, Spring Data JPA, Lombok, Spring Security, and MySQL Driver as dependencies.

After i set it up, I tried to run the application, but it failed to start. It says, "Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. + failed to determine a suitable driver class."

I thought it's a fatal issue, and it's related to setting, for example, Gradle, SDK, or anything different. Even after trying to set it, it didn't work well.

To tell you the conclusion first, this comes from my lack of experience, I found wrong cause for this problem, which took me several hours.

I should've focused on Why "APPLICATION FAILED TO START", and if needed, I could remove that verbosity word : Deprecated Gradle features ~~ making it incompatible.

Leaving my trace can organize my thoughts, that's why i am documenting this.

#Leaving my trace

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

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

#APPLICATION FAILED TO START

Description : Failed to configure a Datasource : 'url' attribute is not specified and no embedded datasource could be configured.

Reason :Failed to determine a suitable driver class

#Found invalid Gradle JVM configuration

: Please fix JAVA_HOME environment variable

Settings Shortcut : ctrl + alt + S

Just in case, I tried various setup

Gradle JVM : Project SDK 17

-> FAILED TO START

  1. Gradle JVM : Project JAVA_HOME JDK

    -> Invalid Gradle JDK configuration found.

  1. Gradle JVM : 17 Amazone Corretto version 17.0.9

  1. Gradle JVM : 17 Oracle OpenJDk version 17.0.9

At first, I thought it must have related to Gradle JVM.....................But,,,,,,, when application runs well, there's no error message : APPLICATION FAILED TO START and Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0

#Conclusion : The problem was from ....

ah,,,,,it's because I didn't define database configuration even though I added MySQL dependencies at first. That's why this happened.

What's more, I've tried to read Gradle document, it says The description of Deprecated Gradle ~~ was kind of verbosity word, and I can hide it from the Console.

Although I participated in team project, I didn't set up Spring initial setting, I couldn't judge what's the cause............, lack of experience. That's because I need to try and leave the trace.

In conclusion, When application runs well, I don't need to care about this, and if needed, I can remove that verbosity word : deprecated ~~~ making it incompatible

spring initializr below is my first setup

#Project SDK


+Annotation Processors, Gradle

Annotation Processors Enabled

Settings (ctrl + alt + S) -> Annotation Processors

To use lombok,

Annotation Processors -> check Enable annotation processing

Build, Execution, Deployment tap

Settings -> Gradle (Build Tool)

:Build and Run using -> Gradle (Default)

:Run tests using -> Gradle (Default)

:Gradle JVM : Oracle Open JDK version 17.0.9