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

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


The following commit(s) were added to refs/heads/main by this push:
     new d9a5eb1e3 chore: add SPDX license headers to project-info.conf and 
paradox .htaccess (#1306)
d9a5eb1e3 is described below

commit d9a5eb1e38c0c35a4a4d9ff80c8794f8f2ea5e5a
Author: PJ Fanning <[email protected]>
AuthorDate: Thu Sep 17 20:11:57 2026 +0100

    chore: add SPDX license headers to project-info.conf and paradox .htaccess 
(#1306)
    
    Motivation:
    A scan of the source tree for files without an Apache license header
    found two that sbt-header never sees: `project/project-info.conf`,
    which lives outside every source set, and
    `docs/src/main/paradox/.htaccess`, which has no sbt-header file type.
    Mirrors apache/pekko#3545, which added headers to the logback XML
    files, shell scripts and benchmark template that sbt-header misses in
    pekko. pekko-http has no logback configs, its one shell script already
    carries a header and its boilerplate templates are covered by the
    `*.scala.template` mapping in `CopyrightHeader`, so only these two
    files remain.
    
    Modification:
    Prepend the `# SPDX-License-Identifier: Apache-2.0` line that
    `CopyrightHeader.hashLineComment` hardcodes for every hash-comment file
    in this repo, matching the header on the `reference.conf` and
    `application.conf` files and on pekko's own `project-info.conf`.
    
    Result:
    Every tracked configuration and script file carries a license header.
    No behavior change: HOCON and Apache httpd both treat `#` lines as
    comments.
    
    Tests:
    - `project/project-info.conf` parsed and resolved with Typesafe Config
      1.4.6 after the change; `project-info.scaladoc` resolves as before.
    - sbt headerCheckAll - pass.
    
    References:
    None - follows apache/pekko#3545
---
 docs/src/main/paradox/.htaccess | 2 ++
 project/project-info.conf       | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/docs/src/main/paradox/.htaccess b/docs/src/main/paradox/.htaccess
index 2d3e973b4..30ba7e160 100644
--- a/docs/src/main/paradox/.htaccess
+++ b/docs/src/main/paradox/.htaccess
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: Apache-2.0
+
 # Since Akka HTTP 10.0.9
 RedirectMatch 301 ^(.*)/common/de-coding.html$ $1/common/encoding.html
 RedirectMatch 301 ^(.*)/low-level-server-side-api.html$ 
$1/server-side/low-level-api.html
diff --git a/project/project-info.conf b/project/project-info.conf
index ca043b98f..5d38c6cd8 100644
--- a/project/project-info.conf
+++ b/project/project-info.conf
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: Apache-2.0
+
 project-info {
   version: "current"
   scaladoc: 
"https://pekko.apache.org/api/pekko-http/"${project-info.version}"/org/apache/pekko/http/scaladsl";


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

Reply via email to