diff --git a/.github/workflows/test-scala.yml b/.github/workflows/test-scala.yml index a50d885..85ba58b 100644 --- a/.github/workflows/test-scala.yml +++ b/.github/workflows/test-scala.yml @@ -18,7 +18,10 @@ permissions: jobs: build: runs-on: ubuntu-latest - name: Build + name: Build (Java ${{ matrix.java-version }}) + strategy: + matrix: + java-version: ['8', '11', '17', '21'] timeout-minutes: 5 defaults: run: @@ -32,7 +35,7 @@ jobs: - uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5 with: distribution: temurin - java-version: '21' + java-version: ${{ matrix.java-version }} cache: sbt - uses: sbt/setup-sbt@af116cce31c00823d3903ce687f9cda3a4f19f1b # v1 - run: sbt compile diff --git a/scala/README.md b/scala/README.md index 10de320..2f46bd8 100644 --- a/scala/README.md +++ b/scala/README.md @@ -2,8 +2,6 @@ ## 開発 -NOTE: java21未満を利用する場合は `project/build.properties` を変更して sbt `1.11.7` などを利用してください - ```shell # 準備 git init && git add . && git commit -m init diff --git a/scala/build.sbt b/scala/build.sbt index e39e2dc..bb13ad2 100644 --- a/scala/build.sbt +++ b/scala/build.sbt @@ -1,4 +1,4 @@ -val scala3Version = "3.8.3" +val scala3Version = "3.3.5" lazy val root = project .in(file(".")) diff --git a/scala/project/build.properties b/scala/project/build.properties index df061f4..04267b1 100644 --- a/scala/project/build.properties +++ b/scala/project/build.properties @@ -1 +1 @@ -sbt.version=1.12.9 +sbt.version=1.9.9