Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document and add copyright headers #756

Merged
merged 10 commits into from
Feb 8, 2024
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Copyright (c) {year} Contributors to the Eclipse Foundation
Ladicek marked this conversation as resolved.
Show resolved Hide resolved
#
# This program and the accompanying materials are made available under the
# Apache Software License 2.0 which is available at:
# https://www.apache.org/licenses/LICENSE-2.0.
#
# SPDX-License-Identifier: Apache-2.0
version: 2
updates:
- package-ecosystem: github-actions
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/ci-actions.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Copyright (c) 2021 Red Hat, Inc. and others
#
# This program and the accompanying materials are made available under the
# Apache Software License 2.0 which is available at:
# https://www.apache.org/licenses/LICENSE-2.0.
#
# SPDX-License-Identifier: Apache-2.0
name: Jakarta Contexts and Dependency Injection CI

on:
Expand Down
28 changes: 27 additions & 1 deletion CONTRIBUTING.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Contributor Agreement (ECA) on file.
For more information, please see the Eclipse Committer Handbook:
https://www.eclipse.org/projects/handbook/#resources-commit

## Eclipse Development Process
== Eclipse Development Process

This Eclipse Foundation open project is governed by the Eclipse Foundation
Development Process and operates under the terms of the Eclipse IP Policy.
Expand All @@ -64,6 +64,32 @@ Jakarta EE specification projects.
* https://jakarta.ee/about/jesp/
* https://www.eclipse.org/legal/efsp_non_assert.php

== Copyright headers

Every new file should start with one of the following headers in whatever comment format is appropriate for the file, where `{year}` is the year the file was created and `{owner}` is the copyright owner of the original contribution:

[source]
----
Copyright (c) {year} Contributors to the Eclipse Foundation

This program and the accompanying materials are made available under the
Apache Software License 2.0 which is available at:
https://www.apache.org/licenses/LICENSE-2.0.

SPDX-License-Identifier: Apache-2.0
----

[source]
----
Copyright (c) {year} {owner} and others

This program and the accompanying materials are made available under the
Apache Software License 2.0 which is available at:
https://www.apache.org/licenses/LICENSE-2.0.

SPDX-License-Identifier: Apache-2.0
----

== Contact

Contact the project developers via the project's "dev" list.
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
<!--
Copyright (c) 2011 Red Hat, Inc. and others

This program and the accompanying materials are made available under the
Apache Software License 2.0 which is available at:
https://www.apache.org/licenses/LICENSE-2.0.

SPDX-License-Identifier: Apache-2.0
-->

# GitHub Pages
The latest news for CDI 4.x can be found in the [GitHub pages](https://jakartaee.github.io/cdi/)
Expand Down
25 changes: 22 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
<!--
Copyright (c) 2011 Red Hat, Inc. and others

This program and the accompanying materials are made available under the
Apache Software License 2.0 which is available at:
https://www.apache.org/licenses/LICENSE-2.0.

SPDX-License-Identifier: Apache-2.0
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

Expand Down Expand Up @@ -80,9 +89,19 @@
<artifactId>apache-rat-plugin</artifactId>
<version>${rat.version}</version>
<configuration>
<includes>
<include>**/*.java</include>
</includes>
<excludes>
<!-- files which are generated or otherwise can't have copyright headers -->
<exclude>**/.cache/**</exclude>
<exclude>**/*.lock</exclude>
<exclude>src/main/asciidoc/dictionary.txt</exclude>
<!-- services files -->
<exclude>**/resources/META-INF/services/*</exclude>
<!-- files which are themselves licenses -->
<exclude>**/speclicense.html</exclude>
<exclude>**/license-*.asciidoc</exclude>
<!-- docs -->
<exclude>docs/**</exclude>
</excludes>
</configuration>
<executions>
<execution>
Expand Down