Skip to content

Commit d8d29ef

Browse files
authored
Update actions/setup-java version to v4 to fix cache service issue. (#355)
* Update actions/setup-java version to v4 to fix cache service issue. * update gradle version as the old one cannot be found in jfrog * use maven repo
1 parent 3a580be commit d8d29ef

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
with:
1919
# Need to fetch 2 commits for the PR (base commit and head merge commit) so we can compute the diff
2020
fetch-depth: 2
21-
- uses: actions/setup-java@v2
21+
- uses: actions/setup-java@v4
2222
with:
2323
distribution: zulu
2424
java-version: ${{ matrix.java }}

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
name: Java ${{ matrix.java }}
1818
steps:
1919
- uses: actions/checkout@v2
20-
- uses: actions/setup-java@v2
20+
- uses: actions/setup-java@v4
2121
with:
2222
distribution: zulu
2323
java-version: ${{ matrix.java }}

build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
buildscript {
22
repositories {
3-
jcenter()
3+
maven {
4+
url "https://plugins.gradle.org/m2/"
5+
}
46
}
57
dependencies {
6-
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:4.21.0'
8+
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:4.32.0'
79
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.4'
810
}
911
}

0 commit comments

Comments
 (0)