From 1ad959215c3bc75ee74e2f192a15f843f48f97e9 Mon Sep 17 00:00:00 2001 From: Moritz Halbritter Date: Mon, 14 Oct 2024 12:22:54 +0200 Subject: [PATCH] Improve classpath index documentation for reproducible builds Closes gh-41265 --- .../src/docs/asciidoc/executable-jar/nested-jars.adoc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/executable-jar/nested-jars.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/executable-jar/nested-jars.adoc index 2c580bb4d96..2ddda581f49 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/executable-jar/nested-jars.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/executable-jar/nested-jars.adoc @@ -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]]