spring-guides / gs-gradle

Building Java Projects with Gradle :: Learn how to build a Java project with Gradle.

Home Page:http://spring.io/guides/gs/gradle/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting error in get-started doc

nilinswap opened this issue · comments

I am getting an error on running gradle tasks.

Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

* What went wrong:
Executing Gradle tasks as part of a build without a settings file is not supported. Make sure that you are executing Gradle from a directory within your Gradle project. Your project should have a 'settings.gradle(.kts)' file in the root directory.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 2s

I fixed this error adding a new file 'settings.gradle' as said in the output.

I am using gradle 7.2.
I am adding a fix on this pr.
Please point out if there is something off with this issue or some better way to solve this.