diff --git a/buildSrc/src/main/java/org/springframework/boot/build/antora/AntoraAsciidocAttributes.java b/buildSrc/src/main/java/org/springframework/boot/build/antora/AntoraAsciidocAttributes.java index 5773ce084d..481a061289 100644 --- a/buildSrc/src/main/java/org/springframework/boot/build/antora/AntoraAsciidocAttributes.java +++ b/buildSrc/src/main/java/org/springframework/boot/build/antora/AntoraAsciidocAttributes.java @@ -203,16 +203,16 @@ public class AntoraAsciidocAttributes { private void addUrlJava(Map attributes) { attributes.put("url-javase-javadoc", "https://docs.oracle.com/en/java/javase/17/docs/api/"); - attributes.put("javadoc-location-java-beans", "{url-javase-javadoc}"); - attributes.put("javadoc-location-java-lang", "{url-javase-javadoc}"); - attributes.put("javadoc-location-java-net", "{url-javase-javadoc}"); - attributes.put("javadoc-location-java-io", "{url-javase-javadoc}"); - attributes.put("javadoc-location-java-time", "{url-javase-javadoc}"); - attributes.put("javadoc-location-java-util", "{url-javase-javadoc}"); - attributes.put("javadoc-location-javax-management", "{url-javase-javadoc}"); - attributes.put("javadoc-location-javax-net", "{url-javase-javadoc}"); - attributes.put("javadoc-location-javax-sql", "{url-javase-javadoc}"); - attributes.put("javadoc-location-javax-xml", "{url-javase-javadoc}"); + attributes.put("javadoc-location-java-beans", "{url-javase-javadoc}/java.desktop"); + attributes.put("javadoc-location-java-lang", "{url-javase-javadoc}/java.base"); + attributes.put("javadoc-location-java-net", "{url-javase-javadoc}/java.base"); + attributes.put("javadoc-location-java-io", "{url-javase-javadoc}/java.base"); + attributes.put("javadoc-location-java-time", "{url-javase-javadoc}/java.base"); + attributes.put("javadoc-location-java-util", "{url-javase-javadoc}/java.base"); + attributes.put("javadoc-location-javax-management", "{url-javase-javadoc}/java.management"); + attributes.put("javadoc-location-javax-net", "{url-javase-javadoc}/java.base"); + attributes.put("javadoc-location-javax-sql", "{url-javase-javadoc}/java.sql"); + attributes.put("javadoc-location-javax-xml", "{url-javase-javadoc}/java.xml"); } private void addUrlLibraryLinkAttributes(Map attributes) {