mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-15 01:07:30 +08:00
Configure the Asciidoctor revnumber in a central location
See gh-20934
This commit is contained in:
parent
0607af870d
commit
a03426af57
@ -152,6 +152,7 @@ class AsciidoctorConventions {
|
||||
attributes.put("github-tag", determineGitHubTag(project));
|
||||
attributes.put("spring-boot-artifactory-repo", ArtifactoryRepository.forProject(project));
|
||||
attributes.put("version", "{gradle-project-version}");
|
||||
attributes.put("revnumber", null);
|
||||
asciidoctorTask.attributes(attributes);
|
||||
}
|
||||
|
||||
|
@ -181,10 +181,6 @@ asciidoctor {
|
||||
}
|
||||
}
|
||||
|
||||
asciidoctor {
|
||||
attributes "revnumber": null
|
||||
}
|
||||
|
||||
asciidoctorPdf {
|
||||
configurations "asciidoctorExtensions"
|
||||
dependsOn test
|
||||
@ -193,10 +189,6 @@ asciidoctorPdf {
|
||||
}
|
||||
}
|
||||
|
||||
asciidoctorPdf {
|
||||
attributes "revnumber": null
|
||||
}
|
||||
|
||||
task zip(type: Zip) {
|
||||
dependsOn asciidoctor, asciidoctorPdf
|
||||
duplicatesStrategy "fail"
|
||||
|
@ -155,10 +155,6 @@ tasks.withType(org.asciidoctor.gradle.jvm.AbstractAsciidoctorTask) {
|
||||
}
|
||||
}
|
||||
|
||||
asciidoctor {
|
||||
attributes "revnumber": null
|
||||
}
|
||||
|
||||
asciidoctor {
|
||||
sources {
|
||||
include "*.singleadoc"
|
||||
@ -171,20 +167,12 @@ asciidoctorPdf {
|
||||
}
|
||||
}
|
||||
|
||||
asciidoctorPdf {
|
||||
attributes "revnumber": null
|
||||
}
|
||||
|
||||
task asciidoctorMultipage(type: org.asciidoctor.gradle.jvm.AsciidoctorTask) {
|
||||
sources {
|
||||
include "*.adoc"
|
||||
}
|
||||
}
|
||||
|
||||
asciidoctorMultipage {
|
||||
attributes "revnumber": null
|
||||
}
|
||||
|
||||
syncDocumentationSourceForAsciidoctor {
|
||||
dependsOn documentTestSlices
|
||||
dependsOn documentStarters
|
||||
|
@ -86,20 +86,12 @@ asciidoctor {
|
||||
attributes "stylesheet": "css/style.css"
|
||||
}
|
||||
|
||||
asciidoctor {
|
||||
attributes "revnumber": null
|
||||
}
|
||||
|
||||
asciidoctorPdf {
|
||||
sources {
|
||||
include "index.adoc"
|
||||
}
|
||||
}
|
||||
|
||||
asciidoctorPdf {
|
||||
attributes "revnumber": null
|
||||
}
|
||||
|
||||
javadoc {
|
||||
options {
|
||||
author = true
|
||||
|
@ -63,10 +63,6 @@ asciidoctor {
|
||||
}
|
||||
}
|
||||
|
||||
asciidoctor {
|
||||
attributes "revnumber": null
|
||||
}
|
||||
|
||||
syncDocumentationSourceForAsciidoctorPdf {
|
||||
from(documentPluginGoals) {
|
||||
into "asciidoc/goals"
|
||||
@ -79,10 +75,6 @@ asciidoctorPdf {
|
||||
}
|
||||
}
|
||||
|
||||
asciidoctorPdf {
|
||||
attributes "revnumber": null
|
||||
}
|
||||
|
||||
javadoc {
|
||||
options {
|
||||
author = true
|
||||
|
Loading…
Reference in New Issue
Block a user