-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Suggest testAndDevelopmentOnly configuration when using Docker Compose support in tests #40171
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
Comments
Also, I think that it would be better if there were additional comment.
|
@doxxx93 The |
The For users of Spring Boot 3.1, the documentation should suggest using the |
@YangSiJun528 Is it possible to use both configurations simultaneously? I thought it would have to be one or the other? You just duplicate the line like this or what? As in dependencies {
developmentOnly("org.springframework.boot:spring-boot-docker-compose")
testImplementation("org.springframework.boot:spring-boot-docker-compose")
} ? I think this should be quite explicit, in that case, not ever having seen that. |
@fatso83, Yes, can use them simultaneously. I was actually using However, if that seems unconventional there might be other viable configuration options as well. |
Yeah I did so. It works well in 3.2 too. |
The documentation for Docker Compose support includes this note:
We should also suggest that Gradle users change their build configuration from
developmentOnly("org.springframework.boot:spring-boot-docker-compose")
totestAndDevelopmentOnly("org.springframework.boot:spring-boot-docker-compose")
when using Docker Compose for tests.The text was updated successfully, but these errors were encountered: