Skip to content

Commit d86726d

Browse files
authored
Modernise repository
2 parents ee36d49 + f09a90e commit d86726d

33 files changed

Lines changed: 853 additions & 852 deletions

.classpath

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
3-
<classpathentry kind="src" output="bin/main" path="src/main/java">
3+
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17">
44
<attributes>
5-
<attribute name="gradle_scope" value="main"/>
6-
<attribute name="gradle_used_by_scope" value="main,test"/>
5+
<attribute name="module" value="true"/>
76
</attributes>
87
</classpathentry>
9-
<classpathentry kind="src" output="bin/main" path="src/main/resources">
10-
<attributes>
11-
<attribute name="gradle_scope" value="main"/>
12-
<attribute name="gradle_used_by_scope" value="main,test"/>
13-
</attributes>
14-
</classpathentry>
15-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/"/>
168
<classpathentry kind="output" path="bin/default"/>
179
</classpath>

.github/workflows/build.yaml

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
name: Build
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
push:
8+
branches: ["main"]
9+
pull_request:
10+
branches: ["main"]
11+
12+
jobs:
13+
check-copyright:
14+
runs-on: ubuntu-latest
15+
name: Check Copyright
16+
if: ${{ !startsWith(github.head_ref, 'create-pull-request/') }}
17+
permissions:
18+
contents: write
19+
pull-requests: write
20+
steps:
21+
- uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
- id: copyright-action
25+
uses: cicsdev/.github/.github/actions/samples-copyright-checker@4134522d8109169bb8c460db841f94167ec2802f
26+
with:
27+
directory: './cics-java-liberty-springboot-security-app/'
28+
file-extensions: '*.java'
29+
base-copyright: 'Copyright IBM Corp. 2026'
30+
token: ${{ secrets.GITHUB_TOKEN }}
31+
32+
build-maven:
33+
name: Build Maven
34+
35+
runs-on: ubuntu-latest
36+
strategy:
37+
matrix:
38+
jdk: [17, 21, 25]
39+
steps:
40+
- uses: actions/checkout@v4
41+
- name: Set up JDK ${{ matrix.jdk }}
42+
uses: actions/setup-java@v4
43+
with:
44+
java-version: ${{ matrix.jdk }}
45+
distribution: "semeru"
46+
cache: maven
47+
- name: Build with Maven
48+
run: mvn --batch-mode --update-snapshots --file pom.xml -Djava.version=${{ matrix.jdk }} verify
49+
50+
build-mvnw:
51+
name: Build Maven Wrapper
52+
53+
runs-on: ubuntu-latest
54+
strategy:
55+
matrix:
56+
jdk: [17, 21, 25]
57+
steps:
58+
- uses: actions/checkout@v4
59+
- name: Set up JDK ${{ matrix.jdk }}
60+
uses: actions/setup-java@v4
61+
with:
62+
java-version: ${{ matrix.jdk }}
63+
distribution: "semeru"
64+
- name: Build with Maven Wrapper
65+
run: ./mvnw --batch-mode --update-snapshots --file pom.xml -Djava.version=${{ matrix.jdk }} verify
66+
67+
build-gradle:
68+
name: Build Gradle
69+
70+
runs-on: ubuntu-latest
71+
strategy:
72+
matrix:
73+
jdk: [17, 21, 25]
74+
steps:
75+
- uses: actions/checkout@v4
76+
- name: Set up JDK ${{ matrix.jdk }}
77+
uses: actions/setup-java@v4
78+
with:
79+
java-version: ${{ matrix.jdk }}
80+
distribution: 'semeru'
81+
- name: Setup Gradle
82+
uses: gradle/actions/setup-gradle@v4
83+
with:
84+
gradle-version: 8.14.4
85+
- name: Build with Gradle
86+
run: gradle clean build -Pjava_version=${{ matrix.jdk }}
87+
88+
build-gradlew:
89+
name: Build Gradle Wrapper
90+
91+
runs-on: ubuntu-latest
92+
strategy:
93+
matrix:
94+
jdk: [17, 21, 25]
95+
steps:
96+
- uses: actions/checkout@v4
97+
- name: Set up JDK ${{ matrix.jdk }}
98+
uses: actions/setup-java@v4
99+
with:
100+
java-version: ${{ matrix.jdk }}
101+
distribution: 'semeru'
102+
- name: Build with Gradle Wrapper
103+
run: ./gradlew clean build -Pjava_version=${{ matrix.jdk }}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Cleanup old workflow runs
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * 0'
6+
workflow_dispatch:
7+
8+
jobs:
9+
cleanup:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
actions: write
13+
steps:
14+
- name: Delete old workflow runs
15+
uses: Mattraks/delete-workflow-runs@v2
16+
with:
17+
token: ${{ github.token }}
18+
repository: ${{ github.repository }}
19+
retain_days: 30
20+
keep_minimum_runs: 6

.github/workflows/java.yaml

Lines changed: 0 additions & 85 deletions
This file was deleted.

.mvn/wrapper/MavenWrapperDownloader.java

Lines changed: 0 additions & 117 deletions
This file was deleted.

.mvn/wrapper/maven-wrapper.jar

-49.5 KB
Binary file not shown.
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.5/apache-maven-3.8.5-bin.zip
2-
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
1+
wrapperVersion=3.3.4
2+
distributionType=only-script
3+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.12/apache-maven-3.9.12-bin.zip
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
encoding/<project>=UTF-8
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
4+
org.eclipse.jdt.core.compiler.compliance=17
5+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
6+
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
7+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
8+
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
9+
org.eclipse.jdt.core.compiler.release=enabled
10+
org.eclipse.jdt.core.compiler.source=17

.settings/org.eclipse.wst.common.component

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)