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
7 changes: 7 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes><attribute name="module" value="true"/></attributes>
</classpathentry>
<classpathentry kind="output" path="bin/default"/>
</classpath>
109 changes: 109 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
name: Build

on:
push:
branches: ["cicsts/v5.5"]
pull_request:
branches: ["cicsts/v5.5"]
schedule:
- cron: '0 0 * * *'

permissions:
contents: read

jobs:
check-copyright:
runs-on: ubuntu-latest
name: Check Copyright
if: ${{ !startsWith(github.head_ref, 'create-pull-request/') }}
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- id: copyright-action
uses: cicsdev/.github/.github/actions/samples-copyright-checker@4134522d8109169bb8c460db841f94167ec2802f
with:
directory: './cics-java-liberty-jdbc-app/'
file-extensions: '*.js *.java *.html'
base-copyright: 'Copyright IBM Corp. 2025'
token: ${{ secrets.GITHUB_TOKEN }}

build-maven:
name: Build Maven

runs-on: ubuntu-latest
strategy:
matrix:
# JDK 8 excluded: maven-compiler-plugin <release> requires JDK 9+
# Use JDK 11+ with -Djava.version=8 to validate Java 8 source compatibility
jdk: [11, 17, 21, 25]
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.jdk }}
distribution: "semeru"
cache: maven
- name: Build with Maven
run: mvn --batch-mode --update-snapshots --file pom.xml -Djava.version=8 verify

build-mvnw:
name: Build Maven Wrapper

runs-on: ubuntu-latest
strategy:
matrix:
# JDK 8 excluded: maven-compiler-plugin <release> requires JDK 9+
# Use JDK 11+ with -Djava.version=8 to validate Java 8 source compatibility
jdk: [11, 17, 21, 25]
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.jdk }}
distribution: "semeru"
- name: Build with Maven Wrapper
run: ./mvnw --batch-mode --update-snapshots --file pom.xml -Djava.version=8 verify

build-gradle:
name: Build Gradle

runs-on: ubuntu-latest
strategy:
matrix:
jdk: [8, 11, 17, 21, 25]
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.jdk }}
distribution: 'semeru'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: 8.14.4
- name: Build with Gradle
run: gradle clean build -Pjava_version=${{ matrix.jdk }}

build-gradlew:
name: Build Gradle Wrapper

runs-on: ubuntu-latest
strategy:
matrix:
jdk: [8, 11, 17, 21, 25]
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.jdk }}
distribution: 'semeru'
- name: Build with Gradle Wrapper
run: ./gradlew clean build -Pjava_version=${{ matrix.jdk }}
23 changes: 23 additions & 0 deletions .github/workflows/cleanup-old-runs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Cleanup old workflow runs

on:
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:

permissions:
contents: read

jobs:
cleanup:
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- name: Delete old workflow runs
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 30
keep_minimum_runs: 6
64 changes: 0 additions & 64 deletions .github/workflows/java.yaml

This file was deleted.

5 changes: 3 additions & 2 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
wrapperVersion=3.3.4
distributionType=only-script
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.12/apache-maven-3.9.12-bin.zip
13 changes: 1 addition & 12 deletions .settings/org.eclipse.buildship.core.prefs
Original file line number Diff line number Diff line change
@@ -1,13 +1,2 @@
arguments=
auto.sync=false
build.scans.enabled=false
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
connection.project.dir=cics-java-liberty-jdbc-web
connection.project.dir=
eclipse.preferences.version=1
gradle.user.home=
java.home=
jvm.arguments=
offline.mode=false
override.workspace.settings=false
show.console.view=false
show.executions.view=false
9 changes: 1 addition & 8 deletions .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=1.8
org.eclipse.jdt.core.compiler.source=1.8
1 change: 1 addition & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @cicsdev/cics-java-samples
8 changes: 0 additions & 8 deletions MAINTAINERS.md

This file was deleted.

Loading
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.