Skip to content

Commit 2cddf18

Browse files
authored
CORE-69: update Scala, sbt versions and associated plugins (#1566)
* update Scala, sbt versions and associated plugins
1 parent 3aa228a commit 2cddf18

32 files changed

+106
-100
lines changed

.github/workflows/verify_consumer_pacts.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,8 @@ jobs:
319319
-e JANITOR_CLIENT_CREDENTIAL_FILE_PATH="" \
320320
-e JANITOR_TRACK_RESOURCE_PROJECT_ID="" \
321321
-e JANITOR_TRACK_RESOURCE_TOPIC_ID="" \
322-
sbtscala/scala-sbt:openjdk-17.0.2_1.7.2_2.13.10 \
323-
sbt "set scalafmtOnCompile := false" "project pact4s" "testOnly *SamProviderSpec"
322+
sbtscala/scala-sbt:eclipse-temurin-jammy-17.0.10_7_1.10.2_2.13.15 \
323+
bash -c "git config --global --add safe.directory /working/sam && sbt \"set scalafmtOnCompile := false\" \"project pact4s\" \"testOnly *SamProviderSpec\""
324324
325325
can-i-deploy: # The can-i-deploy job will run as a result of a Sam PR. It reports the pact verification statuses on all deployed environments.
326326
runs-on: ubuntu-latest

automation/Dockerfile-tests

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM sbtscala/scala-sbt:openjdk-17.0.2_1.7.2_2.13.10
1+
FROM sbtscala/scala-sbt:eclipse-temurin-jammy-17.0.10_7_1.10.2_2.13.15
22

33
COPY src /app/src
44
COPY test.sh /app

automation/project/Settings.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ object Settings {
4141
val commonSettings =
4242
commonBuildSettings ++ testSettings ++ List(
4343
organization := "org.broadinstitute.dsde.firecloud",
44-
scalaVersion := "2.13.10",
44+
scalaVersion := "2.13.15",
4545
resolvers ++= commonResolvers,
4646
scalacOptions ++= commonCompilerSettings
4747
)

automation/project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.6.2
1+
sbt.version=1.10.2

codegen_java/project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.6.2
1+
sbt.version=1.10.2

codegen_java/templates/libraries/okhttp-gson/build.sbt.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ lazy val root = (project in file(".")).
77
Seq(organization := "org.broadinstitute.dsde.workbench",
88
name := "sam-client",
99
version := createVersion("{{artifactVersion}}"),
10-
scalaVersion := "2.13.10",
10+
scalaVersion := "2.13.15",
1111
scalacOptions ++= Seq("-feature"),
1212
javacOptions in compile ++= Seq("-Xlint:deprecation"),
1313
publishArtifact in (Compile, packageDoc) := false,

docker/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ function make_jar()
9696
GIT_MODEL_HASH=$(git log -n 1 --pretty=format:%h)
9797

9898
# make jar. cache sbt dependencies.
99-
docker run --rm --link postgres:postgres -e GIT_MODEL_HASH=$GIT_MODEL_HASH -v $PWD:/working -v jar-cache:/root/.ivy -v jar-cache:/root/.ivy2 sbtscala/scala-sbt:openjdk-17.0.2_1.7.2_2.13.10 /working/docker/init_schema.sh /working
99+
docker run --rm --link postgres:postgres -e GIT_MODEL_HASH=$GIT_MODEL_HASH -v $PWD:/working -v jar-cache:/root/.ivy -v jar-cache:/root/.ivy2 sbtscala/scala-sbt:eclipse-temurin-jammy-17.0.10_7_1.10.2_2.13.15 /working/docker/init_schema.sh /working
100100
sleep 40
101-
docker run --rm --link postgres:postgres -e GIT_MODEL_HASH=$GIT_MODEL_HASH -v $PWD:/working -v jar-cache:/root/.ivy -v jar-cache:/root/.ivy2 sbtscala/scala-sbt:openjdk-17.0.2_1.7.2_2.13.10 /working/docker/install.sh /working
101+
docker run --rm --link postgres:postgres -e GIT_MODEL_HASH=$GIT_MODEL_HASH -v $PWD:/working -v jar-cache:/root/.ivy -v jar-cache:/root/.ivy2 sbtscala/scala-sbt:eclipse-temurin-jammy-17.0.10_7_1.10.2_2.13.15 /working/docker/install.sh /working
102102
EXIT_CODE=$?
103103
set -e # Turn error detection back on for the rest of the script
104104

docker/build_jar.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set -e
88
# Get the last commit hash of the model directory and set it as an environment variable
99
GIT_MODEL_HASH=$(git log -n 1 --pretty=format:%h)
1010

11-
docker run --rm -e GIT_MODEL_HASH=$GIT_MODEL_HASH -v $PWD:/working -v jar-cache:/root/.ivy -v jar-cache:/root/.ivy2 sbtscala/scala-sbt:openjdk-17.0.2_1.7.2_2.13.10 /working/docker/clean_install.sh /working
11+
docker run --rm -e GIT_MODEL_HASH=$GIT_MODEL_HASH -v $PWD:/working -v jar-cache:/root/.ivy -v jar-cache:/root/.ivy2 sbtscala/scala-sbt:eclipse-temurin-jammy-17.0.10_7_1.10.2_2.13.15 /working/docker/clean_install.sh /working
1212
EXIT_CODE=$?
1313

1414
if [ $EXIT_CODE != 0 ]; then

project/Merging.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ object Merging {
1616
case PathList("META-INF", "kotlin-stdlib-common.kotlin_module") => MergeStrategy.first
1717
case PathList("META-INF", "okio.kotlin_module") => MergeStrategy.first
1818
case PathList("META-INF", "versions", "9", "OSGI-INF", "MANIFEST.MF") => MergeStrategy.first
19+
case PathList("META-INF", "license", "LICENSE.mvn-wrapper.txt") => MergeStrategy.first
1920
case PathList("mozilla", "public-suffix-list.txt") => MergeStrategy.first
2021
case "module-info.class" =>
2122
MergeStrategy.discard

project/Settings.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ object Settings {
3737
"-language:existentials", // Existential types (besides wildcard types) can be written and inferred
3838
"-unchecked", // Enable additional warnings where generated code depends on assumptions.
3939
"-Xcheckinit", // Wrap field accessors to throw an exception on uninitialized access.
40-
"-Wconf:cat=deprecation:ws,any:e", // Fail the compilation if there are any warnings, except for deprecation warnings.
40+
"-Wconf:any:e,cat=deprecation:ws", // Fail the compilation if there are any warnings, except for deprecation warnings.
4141
"-Xlint:adapted-args", // Warn if an argument list is modified to match the receiver.
4242
"-Xlint:constant", // Evaluation of a constant arithmetic expression results in an error.
4343
"-Xlint:delayedinit-select", // Selecting member of DelayedInit.
@@ -68,7 +68,7 @@ object Settings {
6868
lazy val commonSettings =
6969
commonBuildSettings ++ commonAssemblySettings ++ commonTestSettings ++ List(
7070
organization := "org.broadinstitute.dsde.workbench",
71-
scalaVersion := "2.13.10",
71+
scalaVersion := "2.13.15",
7272
resolvers := proxyResolvers ++: resolvers.value ++: commonResolvers,
7373
scalacOptions ++= commonCompilerSettings,
7474
Compile / compile := (Compile / compile).dependsOn(Compile / scalafmtAll).value,

0 commit comments

Comments
 (0)