-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from kubukoz/scala3
- Loading branch information
Showing
3 changed files
with
75 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,7 @@ jobs: | |
- 3.0.0-RC1 | ||
- 3.0.0-RC2 | ||
- 3.0.0-RC3 | ||
- 3.0.0 | ||
java: [[email protected]] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
|
@@ -88,7 +89,7 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
scala: [3.0.0-RC3] | ||
scala: [3.0.0] | ||
java: [[email protected]] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
|
@@ -244,6 +245,16 @@ jobs: | |
tar xf targets.tar | ||
rm targets.tar | ||
- name: Download target directories (3.0.0) | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: target-${{ matrix.os }}-3.0.0-${{ matrix.java }} | ||
|
||
- name: Inflate target directories (3.0.0) | ||
run: | | ||
tar xf targets.tar | ||
rm targets.tar | ||
- uses: olafurpg/setup-gpg@v3 | ||
|
||
- run: sbt ++${{ matrix.scala }} ci-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ val GraalVM11 = "[email protected]" | |
// for dottydoc | ||
ThisBuild / resolvers += Resolver.JCenterRepository | ||
|
||
ThisBuild / scalaVersion := "3.0.0-RC3" | ||
ThisBuild / scalaVersion := "3.0.0" | ||
ThisBuild / crossScalaVersions := Seq( | ||
"2.12.10", | ||
"2.12.11", | ||
|
@@ -43,7 +43,8 @@ ThisBuild / crossScalaVersions := Seq( | |
"3.0.0-M3", | ||
"3.0.0-RC1", | ||
"3.0.0-RC2", | ||
"3.0.0-RC3" | ||
"3.0.0-RC3", | ||
"3.0.0" | ||
) | ||
|
||
ThisBuild / githubWorkflowJavaVersions := Seq(GraalVM11) | ||
|
@@ -71,22 +72,15 @@ val commonSettings = Seq( | |
scalacOptions -= "-Xfatal-warnings" | ||
) | ||
|
||
def scalatestVersion(scalaVersion: String) = | ||
scalaVersion match { | ||
case "3.0.0-M3" => "3.2.3" | ||
case "3.0.0-RC1" => "3.2.5" | ||
case "3.0.0-RC2" => "3.2.7" | ||
case _ => "3.2.8" | ||
} | ||
|
||
val plugin = project.settings( | ||
name := "better-tostring", | ||
commonSettings, | ||
crossTarget := target.value / s"scala-${scalaVersion.value}", // workaround for https://github.com/sbt/sbt/issues/5097 | ||
crossVersion := CrossVersion.full, | ||
libraryDependencies ++= Seq( | ||
scalaOrganization.value % ( | ||
if (scalaVersion.value.startsWith("3")) | ||
if (scalaVersion.value == "3.0.0") "scala3-compiler_3" | ||
else if (scalaVersion.value.startsWith("3")) | ||
s"scala3-compiler_${scalaVersion.value}" | ||
else "scala-compiler" | ||
) % scalaVersion.value | ||
|
@@ -105,7 +99,12 @@ val tests = project.settings( | |
) //borrowed from bm4 | ||
}, | ||
libraryDependencies ++= Seq( | ||
"org.scalatest" %% "scalatest" % scalatestVersion(scalaVersion.value) % Test | ||
"org.scalameta" %% "munit" % (scalaVersion.value match { | ||
case "3.0.0-M3" => "0.7.22" | ||
case "3.0.0-RC1" => "0.7.23" | ||
case "3.0.0-RC2" => "0.7.25" | ||
case _ => "0.7.26" | ||
}) % Test | ||
) | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters