This repo contains the gradle plugins for some build steps in our other projects. They might be usable for others but that is not the essence here.
This plugin can be used to correct certain aspects during (or better before) a build.
Usage in your build.gradle.kts
file:
plugins {
id("org.modelingvalue.gradle.mvgplugin")
}
It will scan the complete project dir.
- all text-like files will be corrected w.r.t. their line endings.
- all known file types will get a copyright header entry
- the
version
ingradle.properties
is updated to a version that is not yet among the tags - all projects will have
group
andversion
set from what is in the properties file
The plugin carries a number of sensible defaults so that it can be used without any configuration.
Additional cnfig is possible though:
mvgplugin {
headerUrl = "http://blablabl"
addTextFile("xyzzy")
addNoTextFile("xyzzy")
addTextFileExtension("xyzzy")
addNoTextFileExtension("xyzzy")
addHeaderFileExtension("xyzzy","###") // ext and comment prelude
addHeaderFileExclude("xyzzy")
}
To download, see: https://plugins.gradle.org/plugin/org.modelingvalue.gradle.mvgplugin