From 5d660c23186eab0c865fe122910f4acdb952d63a Mon Sep 17 00:00:00 2001 From: Roberto Tyley Date: Mon, 20 May 2024 11:20:20 +0100 Subject: [PATCH] Add Java version - see guardian/gha-scala-library-release-workflow#36 Although we're _building_ with Java 21, we're also updating the minimum supported Java version from Java 8 to Java 11: https://github.com/guardian/janus-app/pull/442#pullrequestreview-2066056942 We can do this because the artifact published by this repo: "com.gu" %% "janus-config-tools" % "1.0.0" https://index.scala-lang.org/guardian/janus-app/artifacts/janus-config-tools ...is only consumed by these two apps, Janus & Security HQ: * https://github.com/guardian/janus/pull/3947 * https://github.com/guardian/security-hq/pull/413 ....both of which are now running on Java 11. --- .gitignore | 3 --- .tool-versions | 1 + build.sbt | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) create mode 100644 .tool-versions diff --git a/.gitignore b/.gitignore index 5de9de5..db5f55c 100644 --- a/.gitignore +++ b/.gitignore @@ -142,6 +142,3 @@ crashlytics-build.properties .bsp/ .metals/ .vscode/ - -# asdf -.tool-versions \ No newline at end of file diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 0000000..cff4b12 --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +java corretto-21.0.3.9.1 diff --git a/build.sbt b/build.sbt index d8d90b5..f610eeb 100644 --- a/build.sbt +++ b/build.sbt @@ -29,7 +29,7 @@ lazy val commonSettings = Seq( "-deprecation", "-feature", "-unchecked", - "-release:8", + "-release:11", "-Xfatal-warnings" ), Test / testOptions ++= Seq(