-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #332: Add sbt-header back to the build
- Loading branch information
Showing
2 changed files
with
23 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,25 @@ | ||
// import sbt._ | ||
// import Keys._ | ||
import sbt._ | ||
import Keys._ | ||
|
||
// import de.heikoseeberger.sbtheader.{ HeaderPlugin, HeaderPattern } | ||
// import HeaderPlugin.autoImport._ | ||
import de.heikoseeberger.sbtheader.HeaderPlugin | ||
import de.heikoseeberger.sbtheader.HeaderPlugin.{autoImport => SbtHeaderKeys} | ||
|
||
// object CustomHeaderPlugin extends AutoPlugin { | ||
// override def requires = plugins.JvmPlugin && HeaderPlugin | ||
// override def trigger = allRequirements | ||
object CustomHeaderPlugin extends AutoPlugin { | ||
override def requires = plugins.JvmPlugin && HeaderPlugin | ||
override def trigger = allRequirements | ||
import SbtHeaderKeys.{HeaderFileType, HeaderCommentStyle, HeaderLicense} | ||
|
||
// override def projectSettings = Seq( | ||
// headers := Map( | ||
// "scala" -> (HeaderPattern.cStyleBlockComment, copyrightText), | ||
// "java" -> (HeaderPattern.cStyleBlockComment, copyrightText) | ||
// ) | ||
// ) | ||
|
||
// val copyrightText = | ||
// """|/* | ||
// | * Zinc - The incremental compiler for Scala. | ||
// | * Copyright 2011 - 2017, Lightbend, Inc. | ||
// | * Copyright 2008 - 2010, Mark Harrah | ||
// | * This software is released under the terms written in LICENSE. | ||
// | */ | ||
// | | ||
// |""".stripMargin | ||
// } | ||
override def projectSettings = Seq( | ||
SbtHeaderKeys.headerMappings ++= Map( | ||
HeaderFileType.scala -> HeaderCommentStyle.CStyleBlockComment, | ||
HeaderFileType.java -> HeaderCommentStyle.CStyleBlockComment | ||
), | ||
SbtHeaderKeys.headerLicense := Some(HeaderLicense.Custom( | ||
"""|Zinc - The incremental compiler for Scala. | ||
|Copyright 2011 - 2017, Lightbend, Inc. | ||
|Copyright 2008 - 2010, Mark Harrah | ||
|This software is released under the terms written in LICENSE. | ||
|""".stripMargin | ||
)) | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters