Skip to content

Commit 255c92c

Browse files
committed
Add JavaDoc to Reference
Closes gh-3507
1 parent 941b591 commit 255c92c

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

spring-session-docs/antora.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ nav:
77
ext:
88
collector:
99
run:
10-
command: gradlew -q -PbuildSrc.skipTests=true "-Dorg.gradle.jvmargs=-Xmx3g -XX:+HeapDumpOnOutOfMemoryError" :spring-session-docs:generateAntoraYml
10+
command: gradlew -q -PbuildSrc.skipTests=true "-Dorg.gradle.jvmargs=-Xmx3g -XX:+HeapDumpOnOutOfMemoryError" :spring-session-docs:generateAntoraResources
1111
local: true
1212
scan:
1313
dir: ./build/generated-antora-resources

spring-session-docs/modules/ROOT/nav.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
* xref:whats-new.adoc[What's New]
2+
* xref:attachment$api/java/index.html[Javadoc]
23
* xref:samples.adoc[Samples & Guides (Start Here)]
34
** Boot Samples
45
*** HttpSession

spring-session-docs/spring-session-docs.gradle

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,22 @@ antora {
4242
options = [clean: true, fetch: !project.gradle.startParameter.offline, stacktrace: true]
4343
}
4444

45+
tasks.register("syncAntoraAttachments", Sync) {
46+
group = 'Documentation'
47+
description = 'Syncs the Antora attachments'
48+
from project.provider( { project.tasks.api.outputs } )
49+
into project.layout.buildDirectory.dir('generated-antora-resources/modules/ROOT/assets/attachments/api/java')
50+
}
51+
4552
tasks.named("generateAntoraYml") {
4653
asciidocAttributes = project.provider( { generateAttributes() } )
4754
asciidocAttributes.putAll(providers.provider( { resolvedVersions(project.configurations.testRuntimeClasspath) }))
4855
}
4956

57+
tasks.register("generateAntoraResources") {
58+
dependsOn 'generateAntoraYml', 'syncAntoraAttachments'
59+
}
60+
5061

5162
def generateAttributes() {
5263
def springBootVersion = getLibVersion(libs.versions.org.springframework.boot.get())

0 commit comments

Comments
 (0)