Cache asciidoctor tasks
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/a0fdf6aa Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/a0fdf6aa Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/a0fdf6aa Branch: refs/heads/master Commit: a0fdf6aa3e932853a5d4c5a4e4043792f7bc4ccf Parents: 51185f7 Author: Cedric Champeau <cchamp...@apache.org> Authored: Mon Dec 11 11:32:56 2017 +0100 Committer: Cedric Champeau <cchamp...@apache.org> Committed: Mon Dec 11 19:17:11 2017 +0100 ---------------------------------------------------------------------- build.gradle | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/groovy/blob/a0fdf6aa/build.gradle ---------------------------------------------------------------------- diff --git a/build.gradle b/build.gradle index 22aedeb..7d203b4 100644 --- a/build.gradle +++ b/build.gradle @@ -104,6 +104,10 @@ allprojects { apply from: "${rootProject.projectDir}/gradle/asciidoctor.gradle" } + tasks.withType(org.asciidoctor.gradle.AsciidoctorTask) { + outputs.cacheIf { true } + } + tasks.withType(GroovyCompile) { groovyOptions.forkOptions.jvmArgs += ["-Dgroovy.antlr4.cache.threshold=100"] }