File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 77ext :
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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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+
4653tasks. 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
5263def generateAttributes () {
5364 def springBootVersion = getLibVersion(libs. versions. org. springframework. boot. get())
You can’t perform that action at this time.
0 commit comments