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

Unable to start the API with ./gradlew run #1

Open
xaviibaez opened this issue Mar 14, 2023 · 0 comments
Open

Unable to start the API with ./gradlew run #1

xaviibaez opened this issue Mar 14, 2023 · 0 comments

Comments

@xaviibaez
Copy link

I'm using W11 with vscode and, following the README.mdI was unable to start the API.
Error:

> Task :run FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':run'.
> No main class specified and classpath is not an executable jar.

* 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 1s
2 actionable tasks: 1 executed, 1 up-to-date

I found the solution executing ./gradlew bootRun instead of ./gradlew run. Maybe we can update the README.md adding ./gradlew bootRun command on the 6 step in case of error.
All the previous steps worked fine. :)

The main difference between ./gradlew bootRun and ./gradlew run is:

./gradlew bootRun : standard gradle'run' task with additional Spring Boot features. e.g. you can type: bootRun {addResources = false}check github.

./gradlew run: standard gradle 'run' task.

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

No branches or pull requests

1 participant