Add testAndDevelopmentOnly configuration

Closes gh-35436
This commit is contained in:
Andy Wilkinson
2023-09-28 13:23:48 +01:00
parent b52a781f7b
commit bebca55a8f
33 changed files with 587 additions and 24 deletions

View File

@@ -1115,7 +1115,7 @@ This is especially useful for Testcontainer `Container` beans, as they keep thei
include::code:MyContainersConfiguration[]
WARNING: If you're using Gradle and want to use this feature, you need to change the configuration of the `spring-boot-devtools` dependency from `developmentOnly` to `testImplementation`.
WARNING: If you're using Gradle and want to use this feature, you need to change the configuration of the `spring-boot-devtools` dependency from `developmentOnly` to `testAndDevelopmentOnly`.
With the default scope of `developmentOnly`, the `bootTestRun` task will not pick up changes in your code, as the devtools are not active.