Skip to content

Commit 1b262e1

Browse files
committed
Clear secondary sources and configure DuplicatesStrategy for resources when generating Docs.
1 parent d69e316 commit 1b262e1

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

docs/spring-session-docs.gradle

+15-8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
plugins {
2+
// id 'org.asciidoctor.jvm.convert' version '3.2.0'
3+
// id 'org.asciidoctor.jvm.pdf' version '3.2.0'
4+
}
5+
16
apply plugin: 'io.spring.convention.docs'
27
apply plugin: 'io.spring.convention.spring-test'
38

@@ -9,27 +14,24 @@ dependencies {
914

1015
testImplementation project(':spring-session-data-geode')
1116
testImplementation "jakarta.servlet:jakarta.servlet-api"
12-
testImplementation "junit:junit"
13-
testImplementation "org.assertj:assertj-core"
14-
testImplementation "org.mockito:mockito-core"
15-
testImplementation "edu.umd.cs.mtc:multithreadedtc"
16-
testImplementation "org.springframework:spring-test"
1717
testImplementation "org.springframework.security:spring-security-core"
1818
testImplementation "org.springframework.security:spring-security-test"
1919
testImplementation "org.springframework.security:spring-security-web"
2020

2121
}
2222

2323
def versions = dependencyManagement.managedVersions
24-
//def relativePathToSpringCss = "css/spring.css"
25-
//def pathToSpringCss = new File(project.getBuildDir(), relativePathToSpringCss).getAbsolutePath()
2624

2725
asciidoctor {
2826
clearSources()
27+
clearSecondarySources()
2928
sources {
3029
include "index.adoc"
3130
include "guides/*.adoc"
3231
}
32+
resources {
33+
duplicatesStrategy DuplicatesStrategy.EXCLUDE
34+
}
3335
}
3436

3537
asciidoctorj {
@@ -59,13 +61,18 @@ asciidoctorj {
5961
'version-snapshot': snapshotBuild,
6062
'version-milestone': milestoneBuild,
6163
'version-release': releaseBuild
64+
6265
}
6366

6467
asciidoctorPdf {
6568
clearSources()
69+
clearSecondarySources()
6670
sources {
6771
include "index.adoc"
68-
// include "guides/*.adoc"
72+
// include "guides/*.adoc"
73+
}
74+
resources {
75+
duplicatesStrategy DuplicatesStrategy.EXCLUDE
6976
}
7077
}
7178

0 commit comments

Comments
 (0)