Permalink
Browse files

Adds htmlSanityCheck gradle plugin

  • Loading branch information...
sdelamo committed Aug 6, 2018
1 parent cf0813f commit 769fcae0dca18445a201690ba07556617309b8a6
Showing with 16 additions and 1 deletion.
  1. +1 −0 gradle.properties
  2. +7 −0 guides/build.gradle
  3. +8 −1 main/build.gradle
View
@@ -12,4 +12,5 @@ gradleBintrayPluginVersion=1.8.0
buildInfoExtractorGradleVersion=4.6.0
gradleLinkcheckerPluginVersion=1.0.0
shadowJarVersion=2.0.4
htmlSanityCheckVersion=0.9.7
yamlVersion=1.20
View
@@ -7,13 +7,15 @@ buildscript {
dependencies {
classpath "com.github.jengelman.gradle.plugins:shadow:$shadowJarVersion"
classpath "gradle.plugin.org.openrepose:gradle-linkchecker-plugin:$gradleLinkcheckerPluginVersion"
classpath "gradle.plugin.org.aim42:htmlSanityCheck:$htmlSanityCheckVersion"
}
}
apply plugin: "com.github.johnrengelman.shadow"
apply plugin: 'groovy'
apply plugin: 'application'
apply plugin: "org.openrepose.gradle.plugins.linkchecker"
apply plugin: 'org.aim42.htmlSanityCheck'
ext {
siteDir = 'site'
@@ -80,3 +82,8 @@ linkchecker {
inputDir = new File("${project.buildDir}/${siteDir}")
}
runShadow.finalizedBy 'linkchecker'
htmlSanityCheck {
sourceDir = new File("${project.buildDir}/${siteDir}")
}
runShadow.finalizedBy(htmlSanityCheck)
View
@@ -7,13 +7,15 @@ buildscript {
dependencies {
classpath "com.github.jengelman.gradle.plugins:shadow:$shadowJarVersion"
classpath "gradle.plugin.org.openrepose:gradle-linkchecker-plugin:$gradleLinkcheckerPluginVersion"
classpath "gradle.plugin.org.aim42:htmlSanityCheck:$htmlSanityCheckVersion"
}
}
apply plugin: "com.github.johnrengelman.shadow"
apply plugin: 'groovy'
apply plugin: 'application'
apply plugin: "org.openrepose.gradle.plugins.linkchecker"
apply plugin: 'org.aim42.htmlSanityCheck'
ext {
siteDir = 'site'
@@ -129,4 +131,9 @@ processResources.dependsOn = ['copyAssets']
linkchecker {
inputDir = new File("${project.buildDir}/${siteDir}")
}
runShadow.finalizedBy 'linkchecker'
runShadow.finalizedBy 'linkchecker'
htmlSanityCheck {
sourceDir = new File("${project.buildDir}/${siteDir}")
}
runShadow.finalizedBy(htmlSanityCheck)

0 comments on commit 769fcae

Please sign in to comment.