spring-projects / spring-projects/spring-boot

Spring bootRun daemon option

Open
#3,982 9 comments 21 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: blocked type: enhancement
Dominant language
Java
Stars
81.5k
Forks
42.7k
Avg merge
2d 4h
Merged PRs (30d)
65

Description

On one of our projects, we have the need for integration tests to be run with rspec. This means we have to bootRun in a separate terminal / process, run the tests, then go back and stop the bootRun. It would be hugely beneficial to have a daemon option that stops once the gradle script is completed; this way we could bootRun with daemon, run tests, finish (spinning down the bootRun'd server) all in one gradle task.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Gradle bootRun task and its lifecycle handling; review how the Gradle script currently starts and stops the server. Use the described RSpec integration-test workflow as the acceptance case: one Gradle task should launch bootRun in daemon mode, run tests, and stop the server when the build finishes.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.