Skip to content

Commit b4daad8

Browse files
committed
Merge branch '3.4.x' into 3.5.x
2 parents f704743 + 255c92c commit b4daad8

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
@@ -43,11 +43,22 @@ antora {
4343
options = [clean: true, fetch: !project.gradle.startParameter.offline, stacktrace: true]
4444
}
4545

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

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

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

0 commit comments

Comments
 (0)