@@ -13,6 +13,11 @@ buildscript {
13
13
}
14
14
}
15
15
16
+ plugins {
17
+ id ' io.spring.antora.generate-antora-yml' version ' 0.0.1'
18
+ id ' org.antora' version ' 1.0.0'
19
+ }
20
+
16
21
apply plugin : ' io.spring.convention.root'
17
22
apply plugin : ' io.spring.convention.docs'
18
23
apply plugin : ' io.spring.javaformat'
@@ -32,26 +37,27 @@ nohttp {
32
37
source. exclude " buildSrc/build/**"
33
38
}
34
39
35
- asciidoctor {
36
- outputDir = new File ( " $b uildDir /docs " )
37
- attributes([
38
- copycss : ' ' ,
39
- icons : ' font ' ,
40
- ' source-highlighter ' : ' prettify ' ,
41
- sectanchors : ' ' ,
42
- toc2 : ' ' ,
43
- idprefix : ' ' ,
44
- idseparator : ' - ' ,
45
- doctype : ' book ' ,
46
- numbered : ' ' ,
47
- ' spring-ldap-version ' : project . version,
48
- revnumber : project . version
49
- ])
50
- options = [
51
- eruby : ' erubis '
52
- ]
40
+
41
+ antora {
42
+ playbook = ' cached-antora-playbook.yml '
43
+ playbookProvider {
44
+ repository = ' spring-projects/spring-ldap '
45
+ branch = ' docs-build '
46
+ path = ' lib/antora/templates/per-branch-antora-playbook.yml '
47
+ checkLocalBranch = true
48
+ }
49
+ options = [ clean : true , fetch : ! project . gradle . startParameter . offline, stacktrace : true ]
50
+ }
51
+
52
+
53
+
54
+ tasks . named( " generateAntoraYml " ) {
55
+ asciidocAttributes = project . provider( {
56
+ return [ ' project-version ' : project . version]
57
+ } )
53
58
}
54
59
60
+
55
61
s101 {
56
62
configurationDirectory = project. file(" etc/s101" )
57
63
}
@@ -60,7 +66,7 @@ allprojects {
60
66
if (! [' spring-ldap-bom' , ' spring-security-docs' ]. contains(project. name)) {
61
67
apply plugin : ' io.spring.javaformat'
62
68
apply plugin : ' checkstyle'
63
-
69
+
64
70
pluginManager. withPlugin(" io.spring.convention.checkstyle" , { plugin ->
65
71
configure(plugin) {
66
72
dependencies {
0 commit comments