Skip to content

Commit 8139e0a

Browse files
authored
Add setup-gradle step and swap to temurin jdk (#259)
1 parent 13a8a92 commit 8139e0a

3 files changed

Lines changed: 14 additions & 12 deletions

File tree

.github/renovate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
33
"extends": [
44
"config:recommended",
5-
"schedule:weekly"
5+
"schedule:monthly"
66
],
77
"labels": ["dependencies"],
88
"separateMajorMinor": false,

.github/workflows/build.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@ jobs:
2323
- name: Setup Java
2424
uses: actions/setup-java@v4
2525
with:
26-
distribution: corretto
26+
distribution: temurin
2727
java-version: 21
2828

29+
- name: Setup Gradle
30+
uses: gradle/actions/setup-gradle@v4
31+
2932
- name: Build
30-
run: |
31-
chmod +x gradlew
32-
./gradlew projects clean build --no-daemon --refresh-dependencies
33+
run: ./gradlew build
3334

3435
- name: Upload coverage to Codecov
3536
uses: codecov/codecov-action@v5
@@ -50,13 +51,14 @@ jobs:
5051
- name: Setup Java
5152
uses: actions/setup-java@v4
5253
with:
53-
distribution: corretto
54+
distribution: temurin
5455
java-version: 21
5556

57+
- name: Setup Gradle
58+
uses: gradle/actions/setup-gradle@v4
59+
5660
- name: Integration test
57-
run: |
58-
chmod +x gradlew
59-
./gradlew clean integrationTest --no-daemon --refresh-dependencies
61+
run: ./gradlew integrationTest
6062

6163
- name: Upload coverage to Codecov
6264
uses: codecov/codecov-action@v5
@@ -75,7 +77,7 @@ jobs:
7577
- name: Checkout code
7678
uses: actions/checkout@v4
7779
with:
78-
fetch-depth: 0
80+
fetch-depth: 0 # needed for version/tag/release
7981

8082
- name: Bump version
8183
id: version

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ template repo for Java (or Kotlin/Scala) Gradle projects
77

88
## Features
99

10-
- JDK 21 ([Amazon Corretto](https://aws.amazon.com/corretto/))
11-
- [Gradle 8](https://github.com/gradle/gradle) (Kotlin DSL)
10+
- JDK 21
11+
- [Gradle 9](https://github.com/gradle/gradle) (Kotlin DSL)
1212
- [GitHub Actions](https://github.com/features/actions) CI/CD
1313
- Automatic code formatting via [Spotless](https://github.com/diffplug/spotless)
1414
- Java: [`google-java-format`](https://github.com/google/google-java-format)

0 commit comments

Comments
 (0)