Spring Boot Gradle bootRun task default classpath and current working directory

Viewed 1901
1 Answers

Working directory is actually the module with Spring Boot project, which does not necessarily have to be the rootProject.

Classpath for bootRun is:

  • working directory (or Gradle project directory with Spring Boot)
  • main classes
  • runtime classpath

At least this is what seems to be the default when I debug the build (now easily possible with IntelliJ IDEA 2018.2).

Related