hierynomus / license-gradle-plugin

Manage your license(s)
http://www.javadude.nl
Other
409 stars 114 forks source link

support regex in aliases #167

Open blagerweij opened 5 years ago

blagerweij commented 5 years ago

Added support for regex in aliases, so that we can use regular expressions to map to the main license

blagerweij commented 5 years ago

Currently this PR just assumes that all aliases are regexes, we could improve (and make it more backwards compatible) by changing the alias syntax like this: "The Apache License, Version 2.0", "/(The\s)?Apache License, [vV]ersion 2(\.0)/"

(so only when the string starts and ends with a forward slash, we assume it's a regex.) Feedback welcome