From 376098d080b328e7e96bb8818db54e0c0de67195 Mon Sep 17 00:00:00 2001 From: Madhura Bhave Date: Tue, 12 May 2020 14:57:55 -0700 Subject: [PATCH] Set asciidoctor revnumber to null Closes gh-20934 --- .../spring-boot-actuator-autoconfigure/build.gradle | 8 ++++++++ spring-boot-project/spring-boot-docs/build.gradle | 12 ++++++++++++ .../spring-boot-gradle-plugin/build.gradle | 8 ++++++++ .../spring-boot-maven-plugin/build.gradle | 8 ++++++++ 4 files changed, 36 insertions(+) diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/build.gradle b/spring-boot-project/spring-boot-actuator-autoconfigure/build.gradle index c85920eebf..10a0b7da34 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/build.gradle +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/build.gradle @@ -181,6 +181,10 @@ asciidoctor { } } +asciidoctor { + attributes "revnumber": null +} + asciidoctorPdf { configurations "asciidoctorExtensions" dependsOn test @@ -189,6 +193,10 @@ asciidoctorPdf { } } +asciidoctorPdf { + attributes "revnumber": null +} + task zip(type: Zip) { dependsOn asciidoctor, asciidoctorPdf duplicatesStrategy "fail" diff --git a/spring-boot-project/spring-boot-docs/build.gradle b/spring-boot-project/spring-boot-docs/build.gradle index 001b707afe..2e0fe7256e 100644 --- a/spring-boot-project/spring-boot-docs/build.gradle +++ b/spring-boot-project/spring-boot-docs/build.gradle @@ -155,6 +155,10 @@ tasks.withType(org.asciidoctor.gradle.jvm.AbstractAsciidoctorTask) { } } +asciidoctor { + attributes "revnumber": null +} + asciidoctor { sources { include "*.singleadoc" @@ -167,12 +171,20 @@ 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 diff --git a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/build.gradle b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/build.gradle index 4a593a2531..24ab62bc8d 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/build.gradle +++ b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/build.gradle @@ -86,12 +86,20 @@ asciidoctor { attributes "stylesheet": "css/style.css" } +asciidoctor { + attributes "revnumber": null +} + asciidoctorPdf { sources { include "index.adoc" } } +asciidoctorPdf { + attributes "revnumber": null +} + javadoc { options { author = true diff --git a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/build.gradle b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/build.gradle index 875394c4e8..0b0958e558 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/build.gradle +++ b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/build.gradle @@ -63,6 +63,10 @@ asciidoctor { } } +asciidoctor { + attributes "revnumber": null +} + syncDocumentationSourceForAsciidoctorPdf { from(documentPluginGoals) { into "asciidoc/goals" @@ -75,6 +79,10 @@ asciidoctorPdf { } } +asciidoctorPdf { + attributes "revnumber": null +} + javadoc { options { author = true