Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.41 KB

README.md

File metadata and controls

49 lines (34 loc) · 1.41 KB

WTT logo

Gradle Status Apache License, Version 2.0, January 2004 Travis Build

Gradle HTL Plugin

Gradle equivalent to Apache Sling HTL Maven Plugin.

Compatibility

Tested with Gradle 6.0.0 and above.

Setup

Plugin is released in Gradle Plugin Portal. See notes from there.

Usage

Simply run the task gradlew htlValidate.

Configuration

Sample configuration (shown values are plugin defaults):

htl {
    sourceDir("src/main/content/jcr_root")
    sourceFilter {
        include("**/*.html", "**/*.htl")
        exclude("**/some-subdir/*")
    }
}

tasks {
    htlValidate {
        /*
        failOnWarnings() // or via property: htl.validator.failOnWarnings=true
        printIssues() // or via property: htl.validator.printIssues=true
        enabled = false // or via property: htl.validator.enabled=false
        */
    }
}

Licence

Gradle HTL Plugin is licensed under the Apache License, Version 2.0 (the "License")