Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Commit

Permalink
Adds htmlSanityCheck gradle plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
sdelamo committed Aug 6, 2018
1 parent cf0813f commit 769fcae
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions gradle.properties
Expand Up @@ -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
7 changes: 7 additions & 0 deletions guides/build.gradle
Expand Up @@ -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'
Expand Down Expand Up @@ -80,3 +82,8 @@ linkchecker {
inputDir = new File("${project.buildDir}/${siteDir}")
}
runShadow.finalizedBy 'linkchecker'

htmlSanityCheck {
sourceDir = new File("${project.buildDir}/${siteDir}")
}
runShadow.finalizedBy(htmlSanityCheck)
9 changes: 8 additions & 1 deletion main/build.gradle
Expand Up @@ -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'
Expand Down Expand Up @@ -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.