pekko/project/CopyrightHeaderForBoilerplate.scala
Ignasi Marimon-Clos 3a76aa1ad2 Migrate PRValidation to GHActions
* Set sbtopts inline
* Ignore flaky, obsolete test
* Adds concurrency limit (run only latest commit
* Don't run scala3 workflows until ready to merge
* split publishLocal from pr validation
2021-08-11 11:26:04 +02:00

27 lines
896 B
Scala

/*
* Copyright (C) 2019-2021 Lightbend Inc. <https://www.lightbend.com>
*/
package akka
import de.heikoseeberger.sbtheader.HeaderPlugin
import de.heikoseeberger.sbtheader.HeaderPlugin.autoImport._
import sbt.Keys.sourceDirectory
import sbt.{ Compile, Def, Plugins, Test, inConfig, _ }
import spray.boilerplate.BoilerplatePlugin
object CopyrightHeaderForBoilerplate extends CopyrightHeader {
override def requires: Plugins = BoilerplatePlugin && HeaderPlugin
override protected def headerMappingSettings: Seq[Def.Setting[_]] = {
super.headerMappingSettings
Seq(Compile, Test).flatMap { config =>
inConfig(config) {
Seq(
config / headerSources ++=
(((config / sourceDirectory).value / "boilerplate") ** "*.template").get,
headerMappings := headerMappings.value ++ Map(HeaderFileType("template") -> cStyleComment))
}
}
}
}