ModelingValueGroup / gradlePlugins

Our custom gradle plugins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gradlePlugins

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.

mvgplugin

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 in gradle.properties is updated to a version that is not yet among the tags
  • all projects will have group and version 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

... other plugins might follow in the future

About

Our custom gradle plugins

License:GNU Lesser General Public License v3.0


Languages

Language:Java 95.4%Language:Kotlin 4.6%Language:Shell 0.0%