Skip to content

Commit f599cf7

Browse files
committed
enable sbt-header plugin
1 parent 5e78fef commit f599cf7

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

admin/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ if [ "$TRAVIS_JDK_VERSION" == "$PUBLISH_JDK" ] && [[ "$TRAVIS_TAG" =~ ^v[0-9]+\.
2222
openssl aes-256-cbc -K $K -iv $IV -in admin/secring.asc.enc -out admin/secring.asc -d
2323
fi
2424

25-
sbt "$publishVersion" clean update +test +publishLocal $extraTarget
25+
sbt "$publishVersion" clean update +test +checkHeaders +publishLocal $extraTarget

build.sbt

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import com.typesafe.tools.mima.plugin.{MimaPlugin, MimaKeys}
2-
31
resolvers in ThisBuild += "scala-pr" at "https://scala-ci.typesafe.com/artifactory/scala-integration/"
42

53
crossScalaVersions in ThisBuild := Seq("2.13.0-pre-e2a2cba") // March 16, 2017
@@ -15,7 +13,20 @@ cancelable in Global := true
1513
lazy val core = project.in(file("core")).settings(scalaModuleSettings).settings(scalaModuleOsgiSettings).settings(
1614
name := "scala-parallel-collections",
1715
OsgiKeys.exportPackage := Seq(s"scala.collection.parallel.*;version=${version.value}"),
18-
mimaPreviousVersion := None
16+
mimaPreviousVersion := None,
17+
headers := Map(
18+
"scala" ->
19+
(de.heikoseeberger.sbtheader.HeaderPattern.cStyleBlockComment,
20+
"""|/* __ *\
21+
|** ________ ___ / / ___ Scala API **
22+
|** / __/ __// _ | / / / _ | (c) 2003-2017, LAMP/EPFL **
23+
|** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
24+
|** /____/\___/_/ |_/____/_/ | | **
25+
|** |/ **
26+
|\* */
27+
|
28+
|""".stripMargin)
29+
)
1930
)
2031

2132
lazy val junit = project.in(file("junit")).settings(

project/plugins.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
addSbtPlugin("org.scala-lang.modules" % "scala-module-plugin" % "1.0.4")
2+
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "1.8.0")

0 commit comments

Comments
 (0)