Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,31 @@ on:
- cron: '0 0 * * *'

jobs:
check-copyright:
name: Check Copyright
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Check Copyright
env:
EXTENSIONS: "*.java"
COPYRIGHT_STATEMENT: "/**\n * Copyright IBM Corp. 2025\n */"
run: |
for ext in $EXTENSIONS; do
for file in $(find . -type f -name "$ext" ! -path "cics-java-osgi-jdbc-app/*"); do
if ! grep -q "Copyright" "$file"; then
echo -e "$COPYRIGHT_STATEMENT\n$(cat "$file")" > "$file"
fi
done
done

- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
base: ${{ github.head_ref }}

build-mvnw:
name: Build Maven Wrapper

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* Copyright IBM Corp. 2025
*/
package com.ibm.cicsdev.java.osgi.jdbc;

import java.io.PrintWriter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* Copyright IBM Corp. 2025
*/
package com.ibm.cicsdev.java.osgi.jdbc.data;

import java.math.BigDecimal;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* Copyright IBM Corp. 2025
*/
/**
* Object forms of the data in the EMP database table.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* Copyright IBM Corp. 2025
*/
/**
* Demonstrates the use of JDBC in OSGi bundles.
*/
Expand Down