Skip to content

Commit 398d73b

Browse files
committed
Replace setup-java with setup coursier
due to sbt being removed from the base github runner image
1 parent 317f5c8 commit 398d73b

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

.github/workflows/publish-ghpages.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
with:
2121
fetch-depth: 0
2222
- name: cache sbt packages
23-
# but with a different name than setup-java would use,
23+
# but with a different name than coursier/cache-action would use,
2424
# since webStage will pull some artifacts that the other tasks will not
2525
# and caches are immutable, meaning without a new cache key,
2626
# the webStage artifacts will not be cached
@@ -37,10 +37,10 @@ jobs:
3737
sbt-site-
3838
setup-java-Linux-sbt-${{ hashFiles('**/*.sbt','**/project/build.properties','**/project/**.scala','**/project/**.sbt') }}
3939
setup-java-Linux-sbt-
40-
- uses: actions/setup-java@v4
40+
- uses: coursier/setup-action@v1
4141
with:
42-
distribution: 'zulu'
43-
java-version: '17'
42+
apps: sbt
43+
jvm: zulu:17
4444
- name: Setup Pages
4545
uses: actions/configure-pages@v4
4646
- name: Build site

.github/workflows/publish-sonatype.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
- uses: actions/checkout@v4
1111
with:
1212
fetch-depth: 0
13-
- uses: actions/setup-java@v4
13+
- uses: coursier/cache-action@v6
14+
- uses: coursier/setup-action@v1
1415
with:
15-
distribution: temurin
16-
java-version: 8
17-
cache: sbt
16+
apps: sbt
17+
jvm: temurin:8
1818
- run: sbt ci-release
1919
env:
2020
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}

.github/workflows/run-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111
name: Test-${{ matrix.os }}-${{ matrix.java }}
1212
steps:
1313
- uses: actions/checkout@v4
14-
- uses: actions/setup-java@v4
14+
- uses: coursier/cache-action@v6
15+
- uses: coursier/setup-action@v1
1516
with:
16-
distribution: 'zulu'
17-
java-version: ${{ matrix.java }}
18-
cache: 'sbt'
17+
apps: sbt
18+
jvm: zulu:${{matrix.java}}
1919
- name: set sbt settings
2020
run: echo "Global / parallelExecution := false">parallelExecution.sbt
2121
- name: sbt test

0 commit comments

Comments
 (0)