Skip to content

Commit

Permalink
Merge pull request #257 from ahjohannessen/wip-scala3-m3
Browse files Browse the repository at this point in the history
build: move to Scala3-M3
  • Loading branch information
ahjohannessen authored Dec 24, 2020
2 parents 1898588 + 644458e commit 8d2fe87
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
scala: [3.0.0-M2, 2.13.4]
scala: [3.0.0-M3, 2.13.4]
java: [adopt@1.11]
runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -131,12 +131,12 @@ jobs:
~/Library/Caches/Coursier/v1
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}

- name: Download target directories (3.0.0-M2)
- name: Download target directories (3.0.0-M3)
uses: actions/download-artifact@v2
with:
name: target-${{ matrix.os }}-3.0.0-M2-${{ matrix.java }}
name: target-${{ matrix.os }}-3.0.0-M3-${{ matrix.java }}

- name: Inflate target directories (3.0.0-M2)
- name: Inflate target directories (3.0.0-M3)
run: |
tar xf targets.tar
rm targets.tar
Expand Down
9 changes: 7 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Dependencies._
Global / onChangedBuildSource := ReloadOnSourceChanges

lazy val Scala2 = "2.13.4"
lazy val Scala3 = "3.0.0-M2"
lazy val Scala3 = "3.0.0-M3"

lazy val sec = project
.in(file("."))
Expand Down Expand Up @@ -103,6 +103,11 @@ lazy val commonSettings = Seq(
scalacOptions ++= {
if (isDotty.value) Seq("-source:3.0-migration") else Nil
},
scalacOptions := {
if (isDotty.value)
scalacOptions.value.filterNot(_ == "-Xfatal-warnings") // TODO: Remove when ScalaPB avoids auto insertion of apply
else scalacOptions.value
},
Compile / doc / sources := {
val old = (Compile / doc / sources).value
if (isDotty.value) Nil else old
Expand All @@ -115,7 +120,7 @@ inThisBuild(
List(
scalaVersion := crossScalaVersions.value.last,
crossScalaVersions := Seq(Scala3, Scala2),
scalacOptions ++= Seq("-target:jvm-1.8"),
scalacOptions ++= Seq("target:8"),
javacOptions ++= Seq("-target", "8", "-source", "8"),
organization := "io.github.ahjohannessen",
organizationName := "Scala EventStoreDB Client",
Expand Down

0 comments on commit 8d2fe87

Please sign in to comment.