Skip to content

Commit 7195f84

Browse files
committed
chore: upgrade to Java SDK v3
1 parent 6bf04a3 commit 7195f84

2 files changed

Lines changed: 28 additions & 17 deletions

File tree

.github/workflows/checks.yml

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,50 @@ name: Checks
22

33
on:
44
push:
5-
branches: ["**"]
5+
branches:
6+
- main
7+
pull_request:
68

79
permissions:
810
contents: read
911
packages: read
1012

13+
concurrency:
14+
group: checks-${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
1117
jobs:
12-
ci:
18+
checks:
19+
name: Java ${{ matrix.java-version }}
1320
runs-on: ubuntu-latest
14-
15-
env:
16-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
timeout-minutes: 15
1722

1823
strategy:
24+
fail-fast: false
1925
matrix:
20-
java-version: [24]
26+
java-version:
27+
- "11"
28+
- "26"
29+
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2132

2233
steps:
23-
- name: Checkout code
24-
uses: actions/checkout@v4
34+
- name: Check out repository
35+
uses: actions/checkout@v7
2536

26-
- name: Set up JDK ${{ matrix.java-version }}
27-
uses: actions/setup-java@v4
37+
- name: Set up Java ${{ matrix.java-version }}
38+
uses: actions/setup-java@v5
2839
with:
2940
java-version: ${{ matrix.java-version }}
30-
distribution: "temurin"
31-
cache: "maven"
41+
distribution: temurin
42+
cache: maven
3243
server-id: github
3344
server-username: GITHUB_ACTOR
3445
server-password: GITHUB_TOKEN
3546

36-
- name: Build with Maven
37-
run: mvn clean compile
47+
- name: Build
48+
run: mvn --batch-mode --no-transfer-progress clean package
3849

39-
- name: Run
40-
run: mvn exec:java -Dexec.mainClass="com.example.App"
50+
- name: Run application
51+
run: mvn --batch-mode --no-transfer-progress exec:java -Dexec.mainClass=com.example.App

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<dependency>
3232
<groupId>com.featurevisor</groupId>
3333
<artifactId>featurevisor-java</artifactId>
34-
<version>1.0.0</version>
34+
<version>3.0.0</version>
3535
</dependency>
3636
<dependency>
3737
<groupId>com.fasterxml.jackson.core</groupId>

0 commit comments

Comments
 (0)