parent
c662e9b6ff
commit
8724807628
|
|
@ -9,8 +9,6 @@ tasks.named("bootJar") {
|
|||
|
||||
// tag::layered[]
|
||||
tasks.named("bootJar") {
|
||||
layered {
|
||||
includeLayerTools = false
|
||||
}
|
||||
includeTools = false
|
||||
}
|
||||
// end::layered[]
|
||||
|
|
|
|||
|
|
@ -11,8 +11,6 @@ tasks.named<BootJar>("bootJar") {
|
|||
|
||||
// tag::layered[]
|
||||
tasks.named<BootJar>("bootJar") {
|
||||
layered {
|
||||
includeLayerTools.set(false)
|
||||
}
|
||||
includeTools.set(false)
|
||||
}
|
||||
// end::layered[]
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue