Skip to content

Commit 7f323be

Browse files
authored
Use java 17 on the ci, update sbt args (#27)
1 parent b84a9ae commit 7f323be

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎.circleci/config.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ workflows:
1111
- codacy/sbt:
1212
name: compile
1313
cmd: sbt +compile
14+
openjdk_version: "17"
1415
persist_to_workspace: true
1516
requires:
1617
- codacy/checkout_and_version
@@ -26,6 +27,7 @@ workflows:
2627
name: publish_dev
2728
context: CodacyAWS
2829
aws_profile: maven
30+
openjdk_version: "17"
2931
steps:
3032
- run:
3133
name: Publish to internal S3
@@ -40,6 +42,7 @@ workflows:
4042
cmd: |
4143
echo 'publicMvnPublish' > sonatype.sbt
4244
sbt retrieveGPGKeys +publishSigned sonatypeCentralRelease
45+
openjdk_version: "17"
4346
context: CodacyAWS
4447
no_output_timeout: "30m"
4548
requires:

‎build.sbt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ libraryDependencies ++= Seq(
2323
)
2424

2525
// Ensure Java 8 compatibility
26-
javacOptions ++= Seq("-source", "8", "-target", "8")
26+
javacOptions ++= Seq("--release", "8")
2727
scalacOptions ++= Seq("-target:jvm-1.8")
2828

2929
Compile / sourceGenerators += Def.task {

0 commit comments

Comments
 (0)