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 @@ -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+
4552tasks. 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
5162def generateAttributes () {
5263 def springBootVersion = getLibVersion(libs. versions. org. springframework. boot. get())
You can’t perform that action at this time.
0 commit comments