LUI-87 Use maven license plugin
-
use com.mycila maven license plugin takes license-header.txt from this repo and updates .txt/.xml/.java files
-
runs in root/api/omod
-
runs by default plugin goal format which formats the headers if not properly formatted or missing
-
when environment variable CI=true it will it will run goal "check" which fails the build if a header is missing or not properly formatted
try for yourself(change a header or delete one): formatting
mvn formatter:format
check
mvn formatter:check
simulate being on travis CI
export CI=true
mvn clean install -DskipTests
simulate being a dev :bowtie:
export CI=false
mvn clean install -DskipTests