From 09e61a1d575427b1b2fe90fe15809f2d1b0189fb Mon Sep 17 00:00:00 2001 From: Roberto Tyley Date: Wed, 20 Mar 2024 12:19:47 +0000 Subject: [PATCH] Fix Scala Steward by allowing building under Java 21 Scala Steward can't run on this repo until it allows building under Java 21, due to https://github.com/guardian/scala-steward-public-repos/pull/67 ... we're now running our Scala Steward workflow with Java 21 LTS, which means that all projects that want to have Scala Steward updates (like this one) need to be able to build under Java 21 (even if the projects are still _running_ in production on Java 8). Being able to build with Java 21 [requires](https://docs.scala-lang.org/overviews/jdk-compatibility/overview.html#jdk-21-compatibility-notes) using recent versions of Scala (2.12.18+) and sbt (1.9.0+) - for this repo, all that's needed is a bump of sbt version! --- build.sbt | 2 +- project/build.properties | 2 +- version.sbt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.sbt b/build.sbt index 5214898..4b8ae34 100644 --- a/build.sbt +++ b/build.sbt @@ -1,4 +1,4 @@ -import sbtrelease.ReleaseStateTransformations._ +import sbtrelease.ReleaseStateTransformations.* val scala_2_12: String = "2.12.18" val scala_2_13: String = "2.13.12" diff --git a/project/build.properties b/project/build.properties index c8fcab5..04267b1 100644 --- a/project/build.properties +++ b/project/build.properties @@ -1 +1 @@ -sbt.version=1.6.2 +sbt.version=1.9.9 diff --git a/version.sbt b/version.sbt index e672cf0..1b8b0f5 100644 --- a/version.sbt +++ b/version.sbt @@ -1 +1 @@ -version in ThisBuild := "1.1.8-SNAPSHOT" +ThisBuild / version := "1.1.8-SNAPSHOT"