Skip to content

Document bootRun task generation #39929

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

Closed
vlsi opened this issue Mar 13, 2024 · 2 comments
Closed

Document bootRun task generation #39929

vlsi opened this issue Mar 13, 2024 · 2 comments
Labels
status: invalid An issue that we don't feel is valid

Comments

@vlsi
Copy link

vlsi commented Mar 13, 2024

Currently, the documentation does not mention the cases when id("org.springframework.boot") Gradle plugin adds bootRun task.

Previously, the task was added by default, and now it is added only in case user adds id("application") plugin.
The documentation does not mention it, and it causes weird issues like

I suggest documenting the need for id("application") for bootRun task.
An alternative option could be applying application plugin as a part of org.springframework.boot, however, I am not sure which option is better.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 13, 2024
@mhalbritter
Copy link
Contributor

mhalbritter commented Mar 13, 2024

That's not correct. The bootRun is there, regardless of the application plugin. Create a new project on start.spring.io, and run ./gradlew bootRun. There's no application plugin, but the bootRun still works.

The trigger for the task is the application of the java plugin. This is documented here.

@mhalbritter mhalbritter closed this as not planned Won't fix, can't repro, duplicate, stale Mar 13, 2024
@mhalbritter mhalbritter added status: invalid An issue that we don't feel is valid and removed status: waiting-for-triage An issue we've not yet triaged labels Mar 13, 2024
@vlsi
Copy link
Author

vlsi commented Mar 13, 2024

Thanks for the clarification

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: invalid An issue that we don't feel is valid
Projects
None yet
Development

No branches or pull requests

3 participants