Make asciiDoctor gradle task generate reproducible output

This commit is contained in:
Paul Schaub 2022-11-15 21:43:43 +01:00
parent 0ed7163fd5
commit 0e777de14f
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -64,6 +64,7 @@ task generateManpageAsciiDoc(type: JavaExec) {
apply plugin: 'org.asciidoctor.jvm.convert' apply plugin: 'org.asciidoctor.jvm.convert'
asciidoctor { asciidoctor {
attributes 'reproducible': ''
dependsOn(generateManpageAsciiDoc) dependsOn(generateManpageAsciiDoc)
sourceDir = file("${project.buildDir}/generated-picocli-docs") sourceDir = file("${project.buildDir}/generated-picocli-docs")
outputDir = file("${project.buildDir}/docs") outputDir = file("${project.buildDir}/docs")
@ -71,4 +72,4 @@ asciidoctor {
outputOptions { outputOptions {
backends = ['manpage', 'html5'] backends = ['manpage', 'html5']
} }
} }