Skip to content

Commit 1ad9592

Browse files
committed
Improve classpath index documentation for reproducible builds
Closes gh-41265
1 parent d276166 commit 1ad9592

File tree

1 file changed

+5
-0
lines changed
  • spring-boot-project/spring-boot-docs/src/docs/asciidoc/executable-jar

1 file changed

+5
-0
lines changed

spring-boot-project/spring-boot-docs/src/docs/asciidoc/executable-jar/nested-jars.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ The index file would look like this:
118118
- "BOOT-INF/lib/dependency1.jar"
119119
----
120120

121+
NOTE: Spring Boot only uses the classpath index file when the jar or war file is executed with `java -jar`.
122+
It is not used when running the application from the IDE or when using Maven's `spring-boot:run` or Gradle's `bootRun`.
123+
124+
NOTE: When enabling reproducible builds, the entries in the classpath index file are sorted alphabetically.
125+
121126

122127

123128
[[appendix.executable-jar.nested-jars.layer-index]]

0 commit comments

Comments
 (0)