Update Maven and Gradle layer customization docs

Update the Maven and Gradle documentation following the refined
layer customization changes.

See gh-20526
This commit is contained in:
Phillip Webb
2020-04-02 23:33:34 -07:00
parent 0e1394ef30
commit 12bc890e75
5 changed files with 127 additions and 91 deletions

View File

@@ -8031,7 +8031,7 @@ For Gradle, refer to the {spring-boot-gradle-plugin-docs}/#packaging-layered-jar
=== Writing the Dockerfile
When you create a layered jar, the `spring-boot-jarmode-layertools` jar will be added as a dependency to your jar.
When you create a jar containing the layers index file, the `spring-boot-jarmode-layertools` jar will be added as a dependency to your jar.
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.
Heres how you can launch your jar with a `layertools` jar mode: