From b80390aa99d9f1577df786d94c517793283d5e3e Mon Sep 17 00:00:00 2001 From: Naftoli Gugenheim <98384+nafg@users.noreply.github.com> Date: Fri, 27 Sep 2024 18:07:18 -0400 Subject: [PATCH] Build on Java 11 --- .github/workflows/ci.yml | 8 ++++---- .mergify.yml | 2 +- build.sbt | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 72e4c46..a17bfd4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: matrix: os: [ubuntu-latest] scala: [2.12.19] - java: [zulu@8] + java: [zulu@11] runs-on: ${{ matrix.os }} steps: - name: Checkout current branch (full) @@ -31,12 +31,12 @@ jobs: with: fetch-depth: 0 - - name: Setup Java (zulu@8) - if: matrix.java == 'zulu@8' + - name: Setup Java (zulu@11) + if: matrix.java == 'zulu@11' uses: actions/setup-java@v4 with: distribution: zulu - java-version: 8 + java-version: 11 cache: sbt - name: Setup sbt diff --git a/.mergify.yml b/.mergify.yml index 3fc318d..c775ff5 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -9,7 +9,7 @@ pull_request_rules: - author=scala-steward - author=slick-scala-steward[bot] - author=renovate[bot] - - check-success=Build and Test (ubuntu-latest, 2.12.19, zulu@8) + - check-success=Build and Test (ubuntu-latest, 2.12.19, zulu@11) actions: queue: name: default diff --git a/build.sbt b/build.sbt index 7878b74..f9f0e32 100644 --- a/build.sbt +++ b/build.sbt @@ -1,4 +1,4 @@ -import _root_.io.github.nafg.mergify.dsl._ +import _root_.io.github.nafg.mergify.dsl.* mergifyExtraConditions := Seq( @@ -36,6 +36,6 @@ runAll := { runAllIn(Test).value } +ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec.zulu("11")) ThisBuild / githubWorkflowBuild += WorkflowStep.Sbt(List("runAll"), name = Some(s"Run all main classes")) - ThisBuild / githubWorkflowPublishTargetBranches := Seq()