Skip to content

Commit 600d0d9

Browse files
mar-v-inWSTxda
authored andcommitted
Update GitHub Actions
- Wrapper validation is done as part of setup-gradle, no need to do it ourselves, see https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#gradle-wrapper-validation - Enable storing configuration cache accross builds - Submit dependencies from gradle to GitHub - Do not inspect all tasks on initialization (no longer needed as we have proper configuration cache) (cherry picked from commit 2fe595d)
1 parent d52f1fa commit 600d0d9

2 files changed

Lines changed: 36 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@ jobs:
2020
with:
2121
distribution: "temurin"
2222
java-version: "17"
23-
- name: "Gradle Wrapper validation"
24-
uses: gradle/actions/wrapper-validation@v4
2523
- name: "Setup Gradle"
2624
uses: gradle/actions/setup-gradle@v4
25+
with:
26+
cache-encryption-key: ${{ secrets.GradleEncryptionKey }}
27+
build-scan-publish: true
28+
build-scan-terms-of-use-url: "https://gradle.com/help/legal-terms-of-use"
29+
build-scan-terms-of-use-agree: "yes"
2730
- name: "Setup matchers"
2831
run: |
2932
# Setting up matchers...
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Dependency Submission
2+
permissions:
3+
contents: write
4+
on:
5+
push:
6+
branches: [ 'master' ]
7+
8+
jobs:
9+
dependency-submission:
10+
runs-on: ubuntu-latest
11+
env:
12+
GRADLE_MICROG_VERSION_WITHOUT_GIT: 1
13+
14+
steps:
15+
- name: "Checkout sources"
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
- name: "Setup Java"
20+
uses: actions/setup-java@v4
21+
with:
22+
distribution: "temurin"
23+
java-version: "17"
24+
- name: "Generate and submit gradle dependency graph"
25+
uses: gradle/actions/dependency-submission@v4
26+
with:
27+
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
28+
dependency-graph-continue-on-failure: true
29+
build-scan-publish: true
30+
build-scan-terms-of-use-url: "https://gradle.com/help/legal-terms-of-use"
31+
build-scan-terms-of-use-agree: "yes"

0 commit comments

Comments
 (0)