Set asciidoctor revnumber to null

Closes gh-20934
This commit is contained in:
Madhura Bhave 2020-05-12 14:57:55 -07:00
parent 4c4097a29b
commit 376098d080
4 changed files with 36 additions and 0 deletions

View File

@ -181,6 +181,10 @@ asciidoctor {
} }
} }
asciidoctor {
attributes "revnumber": null
}
asciidoctorPdf { asciidoctorPdf {
configurations "asciidoctorExtensions" configurations "asciidoctorExtensions"
dependsOn test dependsOn test
@ -189,6 +193,10 @@ asciidoctorPdf {
} }
} }
asciidoctorPdf {
attributes "revnumber": null
}
task zip(type: Zip) { task zip(type: Zip) {
dependsOn asciidoctor, asciidoctorPdf dependsOn asciidoctor, asciidoctorPdf
duplicatesStrategy "fail" duplicatesStrategy "fail"

View File

@ -155,6 +155,10 @@ tasks.withType(org.asciidoctor.gradle.jvm.AbstractAsciidoctorTask) {
} }
} }
asciidoctor {
attributes "revnumber": null
}
asciidoctor { asciidoctor {
sources { sources {
include "*.singleadoc" include "*.singleadoc"
@ -167,12 +171,20 @@ asciidoctorPdf {
} }
} }
asciidoctorPdf {
attributes "revnumber": null
}
task asciidoctorMultipage(type: org.asciidoctor.gradle.jvm.AsciidoctorTask) { task asciidoctorMultipage(type: org.asciidoctor.gradle.jvm.AsciidoctorTask) {
sources { sources {
include "*.adoc" include "*.adoc"
} }
} }
asciidoctorMultipage {
attributes "revnumber": null
}
syncDocumentationSourceForAsciidoctor { syncDocumentationSourceForAsciidoctor {
dependsOn documentTestSlices dependsOn documentTestSlices
dependsOn documentStarters dependsOn documentStarters

View File

@ -86,12 +86,20 @@ asciidoctor {
attributes "stylesheet": "css/style.css" attributes "stylesheet": "css/style.css"
} }
asciidoctor {
attributes "revnumber": null
}
asciidoctorPdf { asciidoctorPdf {
sources { sources {
include "index.adoc" include "index.adoc"
} }
} }
asciidoctorPdf {
attributes "revnumber": null
}
javadoc { javadoc {
options { options {
author = true author = true

View File

@ -63,6 +63,10 @@ asciidoctor {
} }
} }
asciidoctor {
attributes "revnumber": null
}
syncDocumentationSourceForAsciidoctorPdf { syncDocumentationSourceForAsciidoctorPdf {
from(documentPluginGoals) { from(documentPluginGoals) {
into "asciidoc/goals" into "asciidoc/goals"
@ -75,6 +79,10 @@ asciidoctorPdf {
} }
} }
asciidoctorPdf {
attributes "revnumber": null
}
javadoc { javadoc {
options { options {
author = true author = true