Skip to content

Commit c05e921

Browse files
authored
Merge branch 'main' into release-please--branches--main
2 parents f679385 + 3315ca5 commit c05e921

File tree

8 files changed

+118
-46
lines changed

8 files changed

+118
-46
lines changed

.github/workflows/checkstyle.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,21 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v2
19-
- name: Set up JDK 1.8
20-
uses: actions/setup-java@v1
18+
- uses: actions/checkout@v4
19+
- name: Extract Java version from .tool-versions
20+
id: java-version
21+
run: |
22+
TOOL_VERSION=$(grep '^java' .tool-versions | awk '{print $2}')
23+
JAVA_DIST=$(echo $TOOL_VERSION | cut -d'-' -f1)
24+
JAVA_VERSION=$(echo $TOOL_VERSION | cut -d'-' -f2)
25+
echo "distribution=$JAVA_DIST" >> $GITHUB_OUTPUT
26+
echo "version=$JAVA_VERSION" >> $GITHUB_OUTPUT
27+
- name: Set up JDK from .tool-versions
28+
uses: actions/setup-java@v4
2129
with:
22-
java-version: 1.8
23-
- name: Grant execute permission for gradlew
24-
run: chmod +x gradlew
30+
java-version: ${{ steps.java-version.outputs.version }}
31+
distribution: ${{ steps.java-version.outputs.distribution }}
32+
- name: Setup Gradle
33+
uses: gradle/actions/setup-gradle@v3
2534
- name: Build with Gradle
2635
run: ./gradlew checkstyleMain checkstyleTest

.github/workflows/coverage.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,21 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v2
16-
- name: Set up JDK 1.8
17-
uses: actions/setup-java@v1
15+
- uses: actions/checkout@v4
16+
- name: Extract Java version from .tool-versions
17+
id: java-version
18+
run: |
19+
TOOL_VERSION=$(grep '^java' .tool-versions | awk '{print $2}')
20+
JAVA_DIST=$(echo $TOOL_VERSION | cut -d'-' -f1)
21+
JAVA_VERSION=$(echo $TOOL_VERSION | cut -d'-' -f2)
22+
echo "distribution=$JAVA_DIST" >> $GITHUB_OUTPUT
23+
echo "version=$JAVA_VERSION" >> $GITHUB_OUTPUT
24+
- name: Set up JDK from .tool-versions
25+
uses: actions/setup-java@v4
1826
with:
19-
java-version: 1.8
20-
- name: Grant execute permission for gradlew
21-
run: chmod +x gradlew
27+
java-version: ${{ steps.java-version.outputs.version }}
28+
distribution: ${{ steps.java-version.outputs.distribution }}
29+
- name: Setup Gradle
30+
uses: gradle/actions/setup-gradle@v3
2231
- name: Build with Gradle
2332
run: ./gradlew jacocoTestCoverageVerification

.github/workflows/cpd.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,22 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v2
18-
- name: Set up JDK 1.8
19-
uses: actions/setup-java@v1
17+
- uses: actions/checkout@v4
18+
- name: Extract Java version from .tool-versions
19+
id: java-version
20+
run: |
21+
TOOL_VERSION=$(grep '^java' .tool-versions | awk '{print $2}')
22+
JAVA_DIST=$(echo $TOOL_VERSION | cut -d'-' -f1)
23+
JAVA_VERSION=$(echo $TOOL_VERSION | cut -d'-' -f2)
24+
echo "distribution=$JAVA_DIST" >> $GITHUB_OUTPUT
25+
echo "version=$JAVA_VERSION" >> $GITHUB_OUTPUT
26+
- name: Set up JDK from .tool-versions
27+
uses: actions/setup-java@v4
2028
with:
21-
java-version: 1.8
22-
- name: Grant execute permission for gradlew
23-
run: chmod +x gradlew
29+
java-version: ${{ steps.java-version.outputs.version }}
30+
distribution: ${{ steps.java-version.outputs.distribution }}
31+
- name: Setup Gradle
32+
uses: gradle/actions/setup-gradle@v3
2433
- name: Run checkstyle on Source and Test
2534
run: ./gradlew cpdCheck
2635

.github/workflows/gradle.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,21 @@ jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
16-
- name: Set up JDK 1.8
17-
uses: actions/setup-java@v1
15+
- uses: actions/checkout@v4
16+
- name: Extract Java version from .tool-versions
17+
id: java-version
18+
run: |
19+
TOOL_VERSION=$(grep '^java' .tool-versions | awk '{print $2}')
20+
JAVA_DIST=$(echo $TOOL_VERSION | cut -d'-' -f1)
21+
JAVA_VERSION=$(echo $TOOL_VERSION | cut -d'-' -f2)
22+
echo "distribution=$JAVA_DIST" >> $GITHUB_OUTPUT
23+
echo "version=$JAVA_VERSION" >> $GITHUB_OUTPUT
24+
- name: Set up JDK from .tool-versions
25+
uses: actions/setup-java@v4
1826
with:
19-
java-version: 1.8
20-
- name: Grant execute permission for gradlew
21-
run: chmod +x gradlew
27+
java-version: ${{ steps.java-version.outputs.version }}
28+
distribution: ${{ steps.java-version.outputs.distribution }}
29+
- name: Setup Gradle
30+
uses: gradle/actions/setup-gradle@v3
2231
- name: Build Binary Executable
23-
run: ./gradlew clean build shadowJar
32+
run: ./gradlew clean build shadowJar -x spotbugsMain

.github/workflows/mutation.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,21 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v2
18-
- name: Set up JDK 1.8
19-
uses: actions/setup-java@v1
17+
- uses: actions/checkout@v4
18+
- name: Extract Java version from .tool-versions
19+
id: java-version
20+
run: |
21+
TOOL_VERSION=$(grep '^java' .tool-versions | awk '{print $2}')
22+
JAVA_DIST=$(echo $TOOL_VERSION | cut -d'-' -f1)
23+
JAVA_VERSION=$(echo $TOOL_VERSION | cut -d'-' -f2)
24+
echo "distribution=$JAVA_DIST" >> $GITHUB_OUTPUT
25+
echo "version=$JAVA_VERSION" >> $GITHUB_OUTPUT
26+
- name: Set up JDK from .tool-versions
27+
uses: actions/setup-java@v4
2028
with:
21-
java-version: 1.8
22-
- name: Grant execute permission for gradlew
23-
run: chmod +x gradlew
29+
java-version: ${{ steps.java-version.outputs.version }}
30+
distribution: ${{ steps.java-version.outputs.distribution }}
31+
- name: Setup Gradle
32+
uses: gradle/actions/setup-gradle@v3
2433
- name: Run Mutation Analysis
2534
run: ./gradlew pitest

.github/workflows/pmd.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,21 @@ jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
16-
- name: Set up JDK 1.8
17-
uses: actions/setup-java@v1
15+
- uses: actions/checkout@v4
16+
- name: Extract Java version from .tool-versions
17+
id: java-version
18+
run: |
19+
TOOL_VERSION=$(grep '^java' .tool-versions | awk '{print $2}')
20+
JAVA_DIST=$(echo $TOOL_VERSION | cut -d'-' -f1)
21+
JAVA_VERSION=$(echo $TOOL_VERSION | cut -d'-' -f2)
22+
echo "distribution=$JAVA_DIST" >> $GITHUB_OUTPUT
23+
echo "version=$JAVA_VERSION" >> $GITHUB_OUTPUT
24+
- name: Set up JDK from .tool-versions
25+
uses: actions/setup-java@v4
1826
with:
19-
java-version: 1.8
20-
- name: Grant execute permission for gradlew
21-
run: chmod +x gradlew
27+
java-version: ${{ steps.java-version.outputs.version }}
28+
distribution: ${{ steps.java-version.outputs.distribution }}
29+
- name: Setup Gradle
30+
uses: gradle/actions/setup-gradle@v3
2231
- name: Run PMD on sources
2332
run: ./gradlew pmdMain

.github/workflows/release-please.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,21 @@ jobs:
2929
if: ${{ steps.release.outputs.release_created }}
3030
uses: actions/checkout@v4
3131

32-
- name: Set up JDK 17
32+
- name: Extract Java version from .tool-versions
33+
if: ${{ steps.release.outputs.release_created }}
34+
id: java-version
35+
run: |
36+
TOOL_VERSION=$(grep '^java' .tool-versions | awk '{print $2}')
37+
JAVA_DIST=$(echo $TOOL_VERSION | cut -d'-' -f1)
38+
JAVA_VERSION=$(echo $TOOL_VERSION | cut -d'-' -f2)
39+
echo "distribution=$JAVA_DIST" >> $GITHUB_OUTPUT
40+
echo "version=$JAVA_VERSION" >> $GITHUB_OUTPUT
41+
- name: Set up JDK from .tool-versions
3342
if: ${{ steps.release.outputs.release_created }}
3443
uses: actions/setup-java@v4
3544
with:
36-
java-version: '17'
37-
distribution: 'corretto'
45+
java-version: ${{ steps.java-version.outputs.version }}
46+
distribution: ${{ steps.java-version.outputs.distribution }}
3847

3948
- name: Setup Gradle
4049
if: ${{ steps.release.outputs.release_created }}

.github/workflows/spotbugs.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,21 @@ jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
16-
- name: Set up JDK 1.8
17-
uses: actions/setup-java@v1
15+
- uses: actions/checkout@v4
16+
- name: Extract Java version from .tool-versions
17+
id: java-version
18+
run: |
19+
TOOL_VERSION=$(grep '^java' .tool-versions | awk '{print $2}')
20+
JAVA_DIST=$(echo $TOOL_VERSION | cut -d'-' -f1)
21+
JAVA_VERSION=$(echo $TOOL_VERSION | cut -d'-' -f2)
22+
echo "distribution=$JAVA_DIST" >> $GITHUB_OUTPUT
23+
echo "version=$JAVA_VERSION" >> $GITHUB_OUTPUT
24+
- name: Set up JDK from .tool-versions
25+
uses: actions/setup-java@v4
1826
with:
19-
java-version: 1.8
20-
- name: Grant execute permission for gradlew
21-
run: chmod +x gradlew
27+
java-version: ${{ steps.java-version.outputs.version }}
28+
distribution: ${{ steps.java-version.outputs.distribution }}
29+
- name: Setup Gradle
30+
uses: gradle/actions/setup-gradle@v3
2231
- name: Run Spotbugs on sources
2332
run: ./gradlew spotbugsMain

0 commit comments

Comments
 (0)