sbt-header icon indicating copy to clipboard operation
sbt-header copied to clipboard

Add support for unmanagedSourceDirectories over unmanagedSources

Open DomBlack opened this issue 9 years ago • 1 comments

At the moment the plugin is based on unmanagedSources which defaults to *.scala and *.java only. However the plugin allows us to specify headers by extension.

I believe the better solution would be to modify the plugin to use the unmanagedSourceDirectories key and find all the matching files in those directories based on the headerSettings map passed in, rather than getting the user to both specify the extension in the map, and then update their includeFilter in (Compile, unmanagedSources ) to include custom extensions too.

This is useful when dealing with plugins which use different file formats, but still can take copyright headers (such as .proto files and .txt files for i18n)

DomBlack avatar Jul 27 '15 10:07 DomBlack

@hseeberger If I were to make a PR that implemented this, would it be merged in & a new release published? Or should we fork this project? Thanks!

saeta avatar May 22 '16 18:05 saeta