Skip to content

Commit 8a74084

Browse files
authored
Merge pull request #942 from komamitsu/fix-build
Fix build
2 parents dbb7cc4 + 30ec624 commit 8a74084

2 files changed

Lines changed: 15 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ jobs:
1919
with:
2020
distribution: temurin
2121
java-version: ${{ matrix.java_version }}
22-
cache: 'gradle'
22+
- name: Setup Gradle
23+
uses: gradle/actions/setup-gradle@v5
2324
- name: Grant execute permission for gradlew
2425
run: chmod +x gradlew
2526
- name: Run tests fluency-core
@@ -43,7 +44,8 @@ jobs:
4344
with:
4445
distribution: temurin
4546
java-version: ${{ matrix.java_version }}
46-
cache: 'gradle'
47+
- name: Setup Gradle
48+
uses: gradle/actions/setup-gradle@v5
4749
- name: Grant execute permission for gradlew
4850
run: chmod +x gradlew
4951
- name: Run tests fluency-fluentd-ext
@@ -62,7 +64,8 @@ jobs:
6264
with:
6365
distribution: temurin
6466
java-version: 17
65-
cache: 'gradle'
67+
- name: Setup Gradle
68+
uses: gradle/actions/setup-gradle@v5
6669
- name: Install local maven package
6770
run: |
6871
./gradlew -p fluency-core publishToMavenLocal --stacktrace --info
@@ -87,7 +90,8 @@ jobs:
8790
with:
8891
distribution: temurin
8992
java-version: ${{ matrix.java_version }}
90-
cache: 'gradle'
93+
- name: Setup Gradle
94+
uses: gradle/actions/setup-gradle@v5
9195
- name: Remove m2 directory just in case
9296
run: rm -rf ~/.m2
9397
- name: Download local Maven package prepared above
@@ -114,7 +118,8 @@ jobs:
114118
with:
115119
distribution: temurin
116120
java-version: ${{ matrix.java_version }}
117-
cache: 'gradle'
121+
- name: Setup Gradle
122+
uses: gradle/actions/setup-gradle@v5
118123
- name: Install local maven package
119124
run: |
120125
./gradlew publishToMavenLocal --stacktrace --info

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ jobs:
1919
uses: actions/setup-java@v5
2020
with:
2121
distribution: temurin
22-
java-version: 8
22+
# Fluency uses java.nio.ByteBuffer which can cause inconsistent method signature issue between JDK 8 and 9.
23+
# We've created Fluency jars using JDK 8 for that and we need to confirm an application built with JDK 9 or later
24+
# can use Fluency jars built with JDK 8 without any problem.
25+
# We're using --release option to build source code with JDK 8. So JDK 21 should work here.
26+
java-version: 21
2327
- name: Setup Gradle
2428
uses: gradle/actions/setup-gradle@v5
2529
- name: Build

0 commit comments

Comments
 (0)