Skip to content

Commit 0f9a663

Browse files
authored
downgrade to scala 3.3 LTS (#440)
* downgrade to scala 3.3 LTS Projects that are used as libraries should stick to the latest LTS version. Scala 3 guarantees backward compatibility across minor releases in the entire 3.x series, but not forward compatibility. This means that libraries compiled with any Scala 3.x version can be used in projects compiled with any Scala 3.y version with y >= x. https://www.scala-lang.org/blog/2022/08/17/long-term-compatibility-plans.html#library-maintainers https://docs.scala-lang.org/overviews/core/binary-compatibility-of-scala-releases.html * fix actions
1 parent 68303e4 commit 0f9a663

File tree

3 files changed

+15
-25
lines changed

3 files changed

+15
-25
lines changed

.github/workflows/pr.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,16 @@ name: PR
22
on: pull_request
33
jobs:
44
pr:
5-
runs-on: ubuntu-22.04
5+
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v2
7+
- uses: actions/checkout@v4
88
with:
99
fetch-depth: 1
1010
- name: Set up JDK
11-
uses: actions/setup-java@v3
11+
uses: actions/setup-java@v4
1212
with:
13-
distribution: 'temurin'
14-
java-version: 19
15-
- uses: actions/cache@v2
16-
with:
17-
path: |
18-
~/.sbt
19-
~/.coursier
20-
key: ${{ runner.os }}-sbt-${{ hashfiles('**/build.sbt') }}
13+
distribution: temurin
14+
java-version: 21
15+
cache: sbt
16+
- uses: sbt/setup-sbt@v1
2117
- run: sbt scalafmtCheck Test/scalafmtCheck +test

.github/workflows/release.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ on:
66
jobs:
77
release:
88
concurrency: release
9-
runs-on: ubuntu-22.04
9+
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v4
1212
with:
1313
fetch-depth: 0
1414
- name: apt-get update
@@ -20,16 +20,12 @@ jobs:
2020
env:
2121
PGP_SECRET: ${{ secrets.PGP_SECRET }}
2222
- name: Set up JDK
23-
uses: actions/setup-java@v3
23+
uses: actions/setup-java@v4
2424
with:
25-
distribution: 'temurin'
26-
java-version: 19
27-
- uses: actions/cache@v2
28-
with:
29-
path: |
30-
~/.sbt
31-
~/.coursier
32-
key: ${{ runner.os }}-sbt-${{ hashfiles('**/build.sbt') }}
25+
distribution: temurin
26+
java-version: 21
27+
cache: sbt
28+
- uses: sbt/setup-sbt@v1
3329
- run: sbt +test ciReleaseTagNextVersion ciReleaseSonatype
3430
env:
3531
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}

build.sbt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name := "overflowdb"
22
ThisBuild / organization := "io.shiftleft"
33
ThisBuild / scalaVersion := "2.13.13"
4-
ThisBuild / crossScalaVersions := Seq("2.13.13", "3.4.1")
5-
// TODO once we're on Scala 3.2.2: make chained implicits in `Implicits.scala` available again
6-
// also, change other places that have temporarily been adapted - search for `TODO Scala 3.2.2`
4+
ThisBuild / crossScalaVersions := Seq("2.13.13", "3.3.6")
75
publish / skip := true
86

97
lazy val core = project.in(file("core"))

0 commit comments

Comments
 (0)