Improve classpath index documentation for reproducible builds

Closes gh-41265
This commit is contained in:
Moritz Halbritter 2024-10-14 12:22:54 +02:00
parent d276166331
commit 1ad959215c
1 changed files with 5 additions and 0 deletions

View File

@ -118,6 +118,11 @@ The index file would look like this:
- "BOOT-INF/lib/dependency1.jar"
----
NOTE: Spring Boot only uses the classpath index file when the jar or war file is executed with `java -jar`.
It is not used when running the application from the IDE or when using Maven's `spring-boot:run` or Gradle's `bootRun`.
NOTE: When enabling reproducible builds, the entries in the classpath index file are sorted alphabetically.
[[appendix.executable-jar.nested-jars.layer-index]]