Standalone Plug-in for Gradle, who's work is to employ LiHo checker to verify if a project source base is sufficiently equipped with license headers.
Currently is under construction.
./gradlew publish
It builds and stores publish-ready artifacts into buildDir/local-repo.
- apply the plugin in plugins block of your
build.gradle
As the plugin is published without plugin marker, configure resolution strategy in yourplugins { id("ru.arsysop.liho.liho-gradle-plugin") version "0.1" }
settings.gradle
script:pluginManagement { repositories { jcenter() } resolutionStrategy { eachPlugin { if (requested.id.namespace == "ru.arsysop.liho" && requested.id.name == "liho-gradle-plugin" ) { useModule("ru.arsysop.liho:liho-gradle-plugin:${requested.version}") } } } }
- configure plugin extension in your
build.gradle
:liho { root.set(project.file("src")) strict.set(true) report.set(project.file("$buildDir/liho/report.txt")) }
- run
liho
task:It analyses all the supported types of sources and stores report into the configured liho/report file./gradlew liho