|
14 | 14 | * limitations under the License. |
15 | 15 | */ |
16 | 16 |
|
17 | | -asciidoctor { |
18 | | - sources { |
19 | | - include '*.adoc' |
20 | | - } |
21 | | - logDocuments = true |
22 | | - backends = ["html5", "pdf"] |
23 | | - options doctype: 'book', eruby: 'erubis' |
24 | | - attributes 'icons': 'font', |
25 | | - 'idprefix': '', |
26 | | - 'idseparator': '-', |
27 | | - docinfo: '', |
28 | | - revnumber: project.version, |
29 | | - sectanchors: '', |
30 | | - sectnums: '', |
31 | | - 'source-highlighter': 'coderay@', // TODO switch to 'rouge' once supported by the html5 backend |
32 | | - stylesdir: 'stylesheets/', |
33 | | - stylesheet: 'spring.css', |
34 | | - 'spring-version': project.version |
35 | | - |
36 | | -} |
37 | | - |
38 | 17 | task api(type: Javadoc) { |
39 | 18 | group = "Documentation" |
40 | 19 | description = "Generates aggregated Javadoc API documentation." |
@@ -70,7 +49,28 @@ task api(type: Javadoc) { |
70 | 49 | } |
71 | 50 | } |
72 | 51 |
|
73 | | -task docsZip(type: Zip, dependsOn: 'asciidoctor') { |
| 52 | +asciidoctor { |
| 53 | + sources { |
| 54 | + include '*.adoc' |
| 55 | + } |
| 56 | + logDocuments = true |
| 57 | + backends = ["html5", "pdf"] |
| 58 | + options doctype: 'book', eruby: 'erubis' |
| 59 | + attributes 'icons': 'font', |
| 60 | + 'idprefix': '', |
| 61 | + 'idseparator': '-', |
| 62 | + docinfo: '', |
| 63 | + revnumber: project.version, |
| 64 | + sectanchors: '', |
| 65 | + sectnums: '', |
| 66 | + 'source-highlighter': 'coderay@', // TODO switch to 'rouge' once supported by the html5 backend |
| 67 | + stylesdir: 'stylesheets/', |
| 68 | + stylesheet: 'spring.css', |
| 69 | + 'spring-version': project.version |
| 70 | + |
| 71 | +} |
| 72 | + |
| 73 | +task docsZip(type: Zip, dependsOn: ['api', 'asciidoctor']) { |
74 | 74 | group = "Distribution" |
75 | 75 | baseName = "spring-framework" |
76 | 76 | classifier = "docs" |
@@ -119,6 +119,7 @@ task schemaZip(type: Zip) { |
119 | 119 | } |
120 | 120 |
|
121 | 121 | task distZip(type: Zip, dependsOn: [docsZip, schemaZip]) { |
| 122 | + |
122 | 123 | group = "Distribution" |
123 | 124 | baseName = "spring-framework" |
124 | 125 | classifier = "dist" |
@@ -156,6 +157,8 @@ task distZip(type: Zip, dependsOn: [docsZip, schemaZip]) { |
156 | 157 | } |
157 | 158 | } |
158 | 159 |
|
| 160 | +distZip.mustRunAfter subprojects.test |
| 161 | + |
159 | 162 | // Create a distribution that contains all dependencies (required and optional). |
160 | 163 | // Not published by default; only for use when building from source. |
161 | 164 | task depsZip(type: Zip, dependsOn: distZip) { zipTask -> |
|
0 commit comments