Update documentation to reflect CDS work

Closes gh-39834
This commit is contained in:
Moritz Halbritter 2024-03-26 11:27:47 +01:00
parent c662e9b6ff
commit 8724807628
5 changed files with 6 additions and 12 deletions

View File

@ -9,8 +9,6 @@ tasks.named("bootJar") {
// tag::layered[]
tasks.named("bootJar") {
layered {
includeLayerTools = false
}
includeTools = false
}
// end::layered[]

View File

@ -11,8 +11,6 @@ tasks.named<BootJar>("bootJar") {
// tag::layered[]
tasks.named<BootJar>("bootJar") {
layered {
includeLayerTools.set(false)
}
includeTools.set(false)
}
// end::layered[]

View File

@ -376,7 +376,7 @@ include::example$packaging/boot-jar-layered-disabled.gradle.kts[tags=layered]
----
======
When a layered jar or war is created, the `spring-boot-jarmode-layertools` jar will be added as a dependency to your archive.
When a layered jar or war is created, the `spring-boot-jarmode-tools` jar will be added as a dependency to your archive.
With this jar on the classpath, you can launch your application in a special mode which allows the bootstrap code to run something entirely different from your application, for example, something that extracts the layers.
If you wish to exclude this dependency, you can do so in the following manner:

View File

@ -7,9 +7,7 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<layers>
<includeLayerTools>false</includeLayerTools>
</layers>
<includeTools>false</includeTools>
</configuration>
</plugin>
</plugins>

View File

@ -254,9 +254,9 @@ include::example$packaging/exclude-artifact-group-pom.xml[tags=exclude-artifact-
[[packaging.examples.layered-archive-tools]]
=== Layered Archive Tools
=== JAR Tools
When a layered jar or war is created, the `spring-boot-jarmode-layertools` jar will be added as a dependency to your archive.
When a layered jar or war is created, the `spring-boot-jarmode-tools` jar will be added as a dependency to your archive.
With this jar on the classpath, you can launch your application in a special mode which allows the bootstrap code to run something entirely different from your application, for example, something that extracts the layers.
If you wish to exclude this dependency, you can do so in the following manner: