Skip to content

Commit b68b367

Browse files
authored
Merge pull request #27 from hossain-khan/copilot/fix-26
Fix ./gradlew wrapper run issue in GitHub workflow
2 parents c8ae05a + 4c192fc commit b68b367

File tree

5 files changed

+9
-18
lines changed

5 files changed

+9
-18
lines changed

.github/workflows/benchmark.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,12 @@ jobs:
1414
- name: Set up JDK
1515
uses: actions/setup-java@v4
1616
with:
17-
java-version: '23'
17+
java-version: '21'
1818
distribution: 'temurin'
1919
cache: gradle
2020

21-
# https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#build-with-a-specific-gradle-version
22-
- name: Setup Gradle
23-
uses: gradle/actions/setup-gradle@v4
24-
with:
25-
gradle-version: '8.14.2' # Quotes required to prevent YAML converting to number
26-
2721
- name: Run benchmark
28-
run: gradle :benchmark:run
22+
run: ./gradlew :benchmark:run
2923

3024
- name: Upload benchmark artifacts
3125
uses: actions/upload-artifact@v4

.github/workflows/build-project.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,12 @@ jobs:
1616
- name: Set up JDK
1717
uses: actions/setup-java@v4
1818
with:
19-
java-version: '23'
19+
java-version: '21'
2020
distribution: 'temurin'
2121
cache: gradle
2222

23-
# https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#build-with-a-specific-gradle-version
24-
- name: Setup Gradle
25-
uses: gradle/actions/setup-gradle@v4
26-
with:
27-
gradle-version: '8.14.2' # Quotes required to prevent YAML converting to number
28-
2923
- name: Build with Gradle
30-
run: gradle build
24+
run: ./gradlew build
3125

3226
- name: Run checks and tests
33-
run: gradle check
27+
run: ./gradlew check

.github/workflows/publish-github-packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ jobs:
4646
env:
4747
USERNAME: ${{ github.actor }} # GitHub username of the user/bot triggering the workflow
4848
TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub token with packages:write permission
49-
run: gradle publish
49+
run: ./gradlew publish

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
*.tar.gz
2020
*.rar
2121

22+
# Exception: Allow gradle wrapper jar
23+
!gradle/wrapper/gradle-wrapper.jar
24+
2225
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
2326
hs_err_pid*
2427
replay_pid*

gradle/wrapper/gradle-wrapper.jar

42.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)