Fix documentation URL for Spring Data.

Use the commons artifact instead of build.

Closes #72
This commit is contained in:
Mark Paluch
2023-11-20 14:04:34 +01:00
parent 0fb11b1202
commit a511b02918

View File

@@ -89,18 +89,18 @@ public class DocumentationMetadata {
*/
public String getReferenceDocUrl() {
Project project = this.project;
if (Projects.BUILD.equals(project)) { // Report Commons Docs for Spring Data Build
project = Projects.COMMONS;
}
if (documentationFormat == DocumentationFormat.ASCIIDOC) {
if (version.isSnapshotVersion()) {
return "";
}
Project project = this.project;
if (Projects.BUILD.equals(project)) { // Report Commons Docs for Spring Data Build
project = Projects.COMMONS;
}
return String.format(DOCS, getProjectName(project), getDocumentationVersion());
}