=sbt Add headers for sbt files.

This commit is contained in:
He-Pin 2023-05-29 10:50:22 +08:00 committed by kerr
parent bbb3be1b1e
commit 6edcec8b2c

View file

@ -24,7 +24,9 @@ object CopyrightHeaderForBuild extends CopyrightHeader {
Seq(Compile, Test).flatMap { config =>
inConfig(config) {
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))
}
}