This is an automated email from the ASF dual-hosted git repository.

hepin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-pekko.git


The following commit(s) were added to refs/heads/main by this push:
     new 6edcec8b2c =sbt Add headers for sbt files.
6edcec8b2c is described below

commit 6edcec8b2c012c5f9cfa82fdca13eeb53da0b917
Author: He-Pin <[email protected]>
AuthorDate: Mon May 29 10:50:22 2023 +0800

    =sbt Add headers for sbt files.
---
 project/CopyrightHeaderForBuild.scala | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/project/CopyrightHeaderForBuild.scala 
b/project/CopyrightHeaderForBuild.scala
index 54d71d13e1..13439102f8 100644
--- a/project/CopyrightHeaderForBuild.scala
+++ b/project/CopyrightHeaderForBuild.scala
@@ -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))
       }
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to