Skip to content

Commit

Permalink
Configure the Asciidoctor revnumber in a central location
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinsona committed May 13, 2020
1 parent 0607af8 commit a03426a
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ private void configureCommonAttributes(Project project, AbstractAsciidoctorTask
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);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,6 @@ asciidoctor {
}
}

asciidoctor {
attributes "revnumber": null
}

asciidoctorPdf {
configurations "asciidoctorExtensions"
dependsOn test
Expand All @@ -193,10 +189,6 @@ asciidoctorPdf {
}
}

asciidoctorPdf {
attributes "revnumber": null
}

task zip(type: Zip) {
dependsOn asciidoctor, asciidoctorPdf
duplicatesStrategy "fail"
Expand Down
12 changes: 0 additions & 12 deletions spring-boot-project/spring-boot-docs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,6 @@ tasks.withType(org.asciidoctor.gradle.jvm.AbstractAsciidoctorTask) {
}
}

asciidoctor {
attributes "revnumber": null
}

asciidoctor {
sources {
include "*.singleadoc"
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ asciidoctor {
}
}

asciidoctor {
attributes "revnumber": null
}

syncDocumentationSourceForAsciidoctorPdf {
from(documentPluginGoals) {
into "asciidoc/goals"
Expand All @@ -79,10 +75,6 @@ asciidoctorPdf {
}
}

asciidoctorPdf {
attributes "revnumber": null
}

javadoc {
options {
author = true
Expand Down

0 comments on commit a03426a

Please sign in to comment.