From d716d99d1bca82dfc3deee4b15a50bfc83eced8b Mon Sep 17 00:00:00 2001 From: Moritz Halbritter Date: Mon, 29 Apr 2024 11:54:17 +0200 Subject: [PATCH] Note that Docker Compose is excluded by default from packaged jars Closes gh-40556 --- .../src/docs/asciidoc/features/docker-compose.adoc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/docker-compose.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/docker-compose.adoc index 9a54353a3e2..35920a67aae 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/docker-compose.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/docker-compose.adoc @@ -41,6 +41,11 @@ It will not call `docker compose up` again and it will not call `docker compose NOTE: By default, Spring Boot's Docker Compose support is disabled when running tests. To enable it, set configprop:spring.docker.compose.skip.in-tests[] to `false`. +TIP: Repackaged archives do not contain Spring Boot's Docker Compose by default. +If you want to use this support, you need to include it. +When using the Maven plugin, set the `excludeDockerCompose` property to `false`. +When using the Gradle plugin, {spring-boot-gradle-plugin-docs}#packaging-executable-configuring-including-development-only-dependencies[configure the task's classpath to include the `developmentOnly` configuration]. + [[features.docker-compose.prerequisites]]