2023-01-08 17:13:31 +08:00
|
|
|
/*
|
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
|
* license agreements; and to You under the Apache License, version 2.0:
|
|
|
|
|
*
|
|
|
|
|
* https://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
*
|
2023-06-22 14:19:26 +01:00
|
|
|
* This file is part of the Apache Pekko project, which was derived from Akka.
|
2023-01-08 17:13:31 +08:00
|
|
|
*/
|
|
|
|
|
|
2019-01-15 20:35:53 +08:00
|
|
|
/*
|
2022-02-04 12:36:44 +01:00
|
|
|
* Copyright (C) 2019-2022 Lightbend Inc. <https://www.lightbend.com>
|
2019-01-15 20:35:53 +08:00
|
|
|
*/
|
|
|
|
|
|
2022-11-12 10:21:24 +01:00
|
|
|
package org.apache.pekko
|
2019-01-15 20:35:53 +08:00
|
|
|
|
|
|
|
|
import de.heikoseeberger.sbtheader.HeaderPlugin.autoImport.headerSources
|
|
|
|
|
import sbt.Keys.sourceDirectory
|
2021-02-01 15:38:29 +00:00
|
|
|
import sbt.{ Compile, Def, Test, _ }
|
2019-01-15 20:35:53 +08:00
|
|
|
|
|
|
|
|
object CopyrightHeaderForJdk9 extends CopyrightHeader {
|
|
|
|
|
|
|
|
|
|
override protected def headerMappingSettings: Seq[Def.Setting[_]] = {
|
|
|
|
|
super.headerMappingSettings
|
|
|
|
|
import Jdk9._
|
|
|
|
|
Seq(
|
2021-05-25 12:50:51 +02:00
|
|
|
Compile / headerSources ++=
|
|
|
|
|
(((Compile / sourceDirectory).value / SCALA_SOURCE_DIRECTORY) ** "*.scala").get,
|
|
|
|
|
Test / headerSources ++=
|
|
|
|
|
(((Test / sourceDirectory).value / SCALA_TEST_SOURCE_DIRECTORY) ** "*.scala").get,
|
|
|
|
|
Compile / headerSources ++=
|
|
|
|
|
(((Compile / sourceDirectory).value / JAVA_SOURCE_DIRECTORY) ** "*.java").get,
|
|
|
|
|
Test / headerSources ++=
|
|
|
|
|
(((Test / sourceDirectory).value / JAVA_TEST_SOURCE_DIRECTORY) ** "*.java").get)
|
2019-01-15 20:35:53 +08:00
|
|
|
}
|
|
|
|
|
}
|