|
1 | 1 | ext { |
2 | | - docResourcesVersion = '0.2.5' |
3 | | - blockSwitchVersion = '0.5.0' |
| 2 | + backendVersion = '0.0.5' |
4 | 3 | } |
5 | 4 |
|
6 | 5 | configurations { |
7 | | - docs |
8 | | - asciidoctorExt |
| 6 | + asciidoctorExtensions |
9 | 7 | } |
10 | 8 |
|
11 | 9 | dependencies { |
12 | | - docs "io.spring.docresources:spring-doc-resources:${docResourcesVersion}@zip" |
13 | | - asciidoctorExt "io.spring.asciidoctor:spring-asciidoctor-extensions-block-switch:$blockSwitchVersion" |
14 | | -} |
15 | | - |
16 | | -task prepareAsciidocBuild(type: Sync) { |
17 | | - dependsOn configurations.docs |
18 | | - from { |
19 | | - configurations.docs.collect { zipTree(it) } |
20 | | - } |
21 | | - duplicatesStrategy = DuplicatesStrategy.INCLUDE |
22 | | - from 'src/reference/asciidoc/' |
23 | | - into "$buildDir/asciidoc" |
| 10 | + asciidoctorExtensions "io.spring.asciidoctor.backends:spring-asciidoctor-backends:$backendVersion" |
24 | 11 | } |
25 | 12 |
|
26 | 13 | task checkAsciidocLinks { |
27 | | - dependsOn prepareAsciidocBuild |
28 | | - inputs.dir("$buildDir/asciidoc") |
| 14 | + inputs.dir('src/reference/asciidoc') |
29 | 15 | doLast { |
30 | 16 | def errors = new ArrayList<>(); |
31 | 17 | errors.add('*** Anchor reference errors found:') |
@@ -65,7 +51,7 @@ task checkAsciidocLinks { |
65 | 51 | asciidoctorPdf { |
66 | 52 | dependsOn checkAsciidocLinks |
67 | 53 | baseDirFollowsSourceFile() |
68 | | - configurations 'asciidoctorExt' |
| 54 | + configurations 'asciidoctorExtensions' |
69 | 55 |
|
70 | 56 | asciidoctorj { |
71 | 57 | sourceDir "$buildDir/asciidoc" |
@@ -109,7 +95,7 @@ asciidoctorj { |
109 | 95 | asciidoctor { |
110 | 96 | dependsOn asciidoctorPdf |
111 | 97 | baseDirFollowsSourceFile() |
112 | | - configurations 'asciidoctorExt' |
| 98 | + configurations 'asciidoctorExtensions' |
113 | 99 | sourceDir "$buildDir/asciidoc" |
114 | 100 | inputs.dir(sourceDir) |
115 | 101 | resources { |
|
0 commit comments