Skip to content

Commit 4898853

Browse files
Update Gradle wrapper to 8.3 (exercism#2367)
* Update Gradle to 8.3, move to exercises dir This updates the Gradle wrapper to Gradle 8.3. Also, since the `exercises` directory is technically the project root, the Gradle wrapper is moved from the repository root. * Update reference doc to mention Gradle wrapper * Fix Gradle commands in reference doc
1 parent 18d4544 commit 4898853

9 files changed

Lines changed: 295 additions & 210 deletions

File tree

.github/workflows/gradle.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ name: Java CI with Gradle
55

66
on: [push, pull_request, workflow_dispatch]
77

8+
defaults:
9+
run:
10+
working-directory: exercises
11+
812
jobs:
913
build:
1014
runs-on: ubuntu-latest
@@ -19,11 +23,9 @@ jobs:
1923
- name: Grant execute permission for gradlew
2024
run: chmod +x gradlew
2125
- name: Check if tests compile cleanly with starter sources
22-
working-directory: exercises
23-
run: ../gradlew compileStarterTestJava --continue
26+
run: ./gradlew compileStarterTestJava --continue
2427
- name: Run checkstyle
25-
working-directory: exercises
26-
run: ../gradlew check --exclude-task test --continue
28+
run: ./gradlew check --exclude-task test --continue
2729

2830
test:
2931
runs-on: ubuntu-latest
@@ -38,5 +40,4 @@ jobs:
3840
- name: Grant execute permission for gradlew
3941
run: chmod +x gradlew
4042
- name: Test all reference implementations with Gradle
41-
working-directory: exercises
42-
run: ../gradlew test --continue
43+
run: ./gradlew test --continue

.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,11 @@ exercises/*/bin
1616
exercises/*/.classpath
1717
exercises/*/.project
1818
exercises/*/.settings/
19-
exercises/gradle/
20-
exercises/gradlew
21-
exercises/gradlew.bat
2219
_template/bin
2320
_template/.classpath
2421
_template/.project
2522
_template/.settings/
2623
_template/gradle/
2724
_template/gradlew
2825
_template/gradlew.bat
29-
*.class
26+
*.class
62.2 KB
Binary file not shown.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
46
zipStoreBase=GRADLE_USER_HOME
57
zipStorePath=wrapper/dists

exercises/gradlew

Lines changed: 249 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)