Skip to content

Commit a03426a

Browse files
committed
Configure the Asciidoctor revnumber in a central location
See gh-20934
1 parent 0607af8 commit a03426a

File tree

5 files changed

+1
-36
lines changed

5 files changed

+1
-36
lines changed

buildSrc/src/main/java/org/springframework/boot/build/AsciidoctorConventions.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ private void configureCommonAttributes(Project project, AbstractAsciidoctorTask
152152
attributes.put("github-tag", determineGitHubTag(project));
153153
attributes.put("spring-boot-artifactory-repo", ArtifactoryRepository.forProject(project));
154154
attributes.put("version", "{gradle-project-version}");
155+
attributes.put("revnumber", null);
155156
asciidoctorTask.attributes(attributes);
156157
}
157158

spring-boot-project/spring-boot-actuator-autoconfigure/build.gradle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,6 @@ asciidoctor {
181181
}
182182
}
183183

184-
asciidoctor {
185-
attributes "revnumber": null
186-
}
187-
188184
asciidoctorPdf {
189185
configurations "asciidoctorExtensions"
190186
dependsOn test
@@ -193,10 +189,6 @@ asciidoctorPdf {
193189
}
194190
}
195191

196-
asciidoctorPdf {
197-
attributes "revnumber": null
198-
}
199-
200192
task zip(type: Zip) {
201193
dependsOn asciidoctor, asciidoctorPdf
202194
duplicatesStrategy "fail"

spring-boot-project/spring-boot-docs/build.gradle

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,6 @@ tasks.withType(org.asciidoctor.gradle.jvm.AbstractAsciidoctorTask) {
155155
}
156156
}
157157

158-
asciidoctor {
159-
attributes "revnumber": null
160-
}
161-
162158
asciidoctor {
163159
sources {
164160
include "*.singleadoc"
@@ -171,20 +167,12 @@ asciidoctorPdf {
171167
}
172168
}
173169

174-
asciidoctorPdf {
175-
attributes "revnumber": null
176-
}
177-
178170
task asciidoctorMultipage(type: org.asciidoctor.gradle.jvm.AsciidoctorTask) {
179171
sources {
180172
include "*.adoc"
181173
}
182174
}
183175

184-
asciidoctorMultipage {
185-
attributes "revnumber": null
186-
}
187-
188176
syncDocumentationSourceForAsciidoctor {
189177
dependsOn documentTestSlices
190178
dependsOn documentStarters

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/build.gradle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,20 +86,12 @@ asciidoctor {
8686
attributes "stylesheet": "css/style.css"
8787
}
8888

89-
asciidoctor {
90-
attributes "revnumber": null
91-
}
92-
9389
asciidoctorPdf {
9490
sources {
9591
include "index.adoc"
9692
}
9793
}
9894

99-
asciidoctorPdf {
100-
attributes "revnumber": null
101-
}
102-
10395
javadoc {
10496
options {
10597
author = true

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/build.gradle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@ asciidoctor {
6363
}
6464
}
6565

66-
asciidoctor {
67-
attributes "revnumber": null
68-
}
69-
7066
syncDocumentationSourceForAsciidoctorPdf {
7167
from(documentPluginGoals) {
7268
into "asciidoc/goals"
@@ -79,10 +75,6 @@ asciidoctorPdf {
7975
}
8076
}
8177

82-
asciidoctorPdf {
83-
attributes "revnumber": null
84-
}
85-
8678
javadoc {
8779
options {
8880
author = true

0 commit comments

Comments
 (0)