Skip to content

Commit

Permalink
Upgrade to asciidoctor 1.5.8
Browse files Browse the repository at this point in the history
Closes gh-221
  • Loading branch information
snicoll committed Aug 15, 2019
1 parent 8a1af94 commit 1ec2e75
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class SpringRestDocsGradleBuildCustomizer implements BuildCustomizer<GradleBuild

@Override
public void customize(GradleBuild build) {
build.plugins().add("org.asciidoctor.convert", (plugin) -> plugin.setVersion("1.5.3"));
build.plugins().add("org.asciidoctor.convert", (plugin) -> plugin.setVersion("1.5.8"));
build.ext("snippetsDir", "file(\"build/generated-snippets\")");
build.customizeTask("test", (task) -> task.invoke("outputs.dir", "snippetsDir"));
build.customizeTask("asciidoctor", (task) -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class SpringRestDocsMavenBuildCustomizer implements BuildCustomizer<MavenBuild>
@Override
public void customize(MavenBuild build) {
build.plugins().add("org.asciidoctor", "asciidoctor-maven-plugin", (plugin) -> {
plugin.setVersion("1.5.3");
plugin.setVersion("1.5.8");
plugin.execution("generate-docs", (execution) -> {
execution.phase("prepare-package");
execution.goal("process-asciidoc");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void customizesGradleBuild() {
this.customizer.customize(build);
assertThat(build.plugins().values()).hasOnlyOneElementSatisfying((plugin) -> {
assertThat(plugin.getId()).isEqualTo("org.asciidoctor.convert");
assertThat(((StandardGradlePlugin) plugin).getVersion()).isEqualTo("1.5.3");
assertThat(((StandardGradlePlugin) plugin).getVersion()).isEqualTo("1.5.8");
});
assertThat(build.getTaskCustomizations()).containsKey("test");
assertThat(build.getExt()).containsEntry("snippetsDir", "file(\"build/generated-snippets\")");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void customizesGradleBuild() {
assertThat(build.plugins().values()).hasOnlyOneElementSatisfying((plugin) -> {
assertThat(plugin.getGroupId()).isEqualTo("org.asciidoctor");
assertThat(plugin.getArtifactId()).isEqualTo("asciidoctor-maven-plugin");
assertThat(plugin.getVersion()).isEqualTo("1.5.3");
assertThat(plugin.getVersion()).isEqualTo("1.5.8");
assertThat(plugin.getExecutions()).hasSize(1);
Execution execution = plugin.getExecutions().get(0);
assertThat(execution.getId()).isEqualTo("generate-docs");
Expand Down

0 comments on commit 1ec2e75

Please sign in to comment.