=sbt Add headers for sbt files.
This commit is contained in:
parent
bbb3be1b1e
commit
6edcec8b2c
1 changed files with 3 additions and 1 deletions
|
|
@ -24,7 +24,9 @@ object CopyrightHeaderForBuild extends CopyrightHeader {
|
||||||
Seq(Compile, Test).flatMap { config =>
|
Seq(Compile, Test).flatMap { config =>
|
||||||
inConfig(config) {
|
inConfig(config) {
|
||||||
Seq(
|
Seq(
|
||||||
config / headerSources ++= (((config / baseDirectory).value / "project") ** "*.scala").get,
|
config / headerSources ++= (((config / baseDirectory).value / "project") ** ("*.scala" || "*.sbt")).get,
|
||||||
|
config / headerSources ++= ((config / baseDirectory).value ** "*.sbt").get,
|
||||||
|
headerMappings := headerMappings.value ++ Map(HeaderFileType("sbt") -> cStyleComment),
|
||||||
headerMappings := headerMappings.value ++ Map(HeaderFileType.scala -> cStyleComment))
|
headerMappings := headerMappings.value ++ Map(HeaderFileType.scala -> cStyleComment))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue