Skip to content

LUI-87 Use maven license plugin

Ivo requested to merge pull/60/LUI-87 into master
  • 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

see https://issues.openmrs.org/browse/LUI-87

Merge request reports