From c16462e7fc16c5808153a8bab13eb32d90c2e5aa Mon Sep 17 00:00:00 2001 From: "Dr. Gernot Starke" Date: Wed, 15 Aug 2018 14:28:45 -0700 Subject: [PATCH] fixed #98, fixed #178: htmlSanityCheck now checks its own documentation --- build.gradle | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index c5ef6464..db0add9e 100644 --- a/build.gradle +++ b/build.gradle @@ -35,8 +35,6 @@ dependencies { 'org.codehaus.groovy:groovy-all:2.4.12', 'org.spockframework:spock-core:1.1-groovy-2.4', 'com.tngtech.archunit:archunit-junit:0.8.3') -// need cglib -// 'com.github.cglib:cglib-nodep:3.2.5') compile gradleApi() compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.3' @@ -85,17 +83,24 @@ apply from: 'config/codenarc.gradle' // end:BuildPlugins[] + htmlSanityCheck { - sourceDir = new File( buildDir, "html5") - // files to check - in Set-notation + // ensure asciidoctor->html runs first + // and images are copied to build directory + + dependsOn asciidoctor + //sourceDocuments = [ "one-file.html", "another-file.html", "index.html"] + sourceDir = new File("${buildDir}/html5") + // where to put results of sanityChecks... - checkingResultsDir = new File( buildDir, "reports/tests/htmlSanityCheck" ) + checkingResultsDir = new File( buildDir, "reports/htmlSanityCheck" ) - // don't break the build if html errors are found! + // fail the build if any error is encountered failOnErrors = false + } task copyResourceImages(type: Copy) {