Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

javadoc-links breaks javadoc build for Spring Boot 3.3.x #1234

Closed
nixel2007 opened this issue Nov 5, 2024 · 0 comments · Fixed by #1235
Closed

javadoc-links breaks javadoc build for Spring Boot 3.3.x #1234

nixel2007 opened this issue Nov 5, 2024 · 0 comments · Fixed by #1235

Comments

@nixel2007
Copy link
Contributor

Hello!
Recently Spring Boot team reorganized their documentation portal.javadoc api section is placed on other URL now.
javadoc-links plugin tries to guess "well known" links for a bunch of projects, including Spring Boot. Since links are no longer available it fails the build with following error:

error: Error fetching URL: https://docs.spring.io/spring-boot/docs/3.3.1/api/ (java.io.FileNotFoundException: https://docs.spring.io/spring-boot/docs/3.3.1/api/package-list) 

The problematic code is located here: https://github.com/freefair/gradle-plugins/blob/main/maven-plugin/src/main/java/io/freefair/gradle/plugins/maven/javadoc/linkproviders/SpringLinkProvider.java

For Spring Boot 3.2 and older link should be:
https://docs.spring.io/spring-boot/docs/3.2.5/api

For Spring Boot 3.3 and newer link should be:
https://docs.spring.io/spring-boot/3.3.5/api/java/index.html

See discussion in Spring Boot repo for additional details.
spring-projects/spring-boot#41207

nixel2007 added a commit to nixel2007/gradle-plugins that referenced this issue Nov 5, 2024
larsgrefer added a commit that referenced this issue Nov 5, 2024
#1234 Use new spring-boot docs site for recent versions of Spring Boot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant