This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
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 #431 from polyvariant/scala3
- Loading branch information
Showing
22 changed files
with
311 additions
and
191 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 |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
scala: [2.13.6] | ||
scala: [3.1.1] | ||
java: [[email protected]] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
|
@@ -78,7 +78,7 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
scala: [2.13.6] | ||
scala: [3.1.1] | ||
java: [[email protected]] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
|
@@ -104,12 +104,12 @@ jobs: | |
~/Library/Caches/Coursier/v1 | ||
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }} | ||
|
||
- name: Download target directories (2.13.6) | ||
- name: Download target directories (3.1.1) | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: target-${{ matrix.os }}-2.13.6-${{ matrix.java }} | ||
name: target-${{ matrix.os }}-3.1.1-${{ matrix.java }} | ||
|
||
- name: Inflate target directories (2.13.6) | ||
- name: Inflate target directories (3.1.1) | ||
run: | | ||
tar xf targets.tar | ||
rm targets.tar | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
runner.dialect=scala213 | ||
runner.dialect=scala3 | ||
|
||
version = "3.5.3" | ||
maxColumn = 140 | ||
|
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 |
---|---|---|
|
@@ -2,6 +2,8 @@ import com.typesafe.sbt.packager.docker.Cmd | |
|
||
import com.typesafe.sbt.packager.docker.ExecCmd | ||
|
||
Global / onChangedBuildSource := ReloadOnSourceChanges | ||
|
||
inThisBuild( | ||
List( | ||
organization := "io.pg", | ||
|
@@ -22,9 +24,9 @@ inThisBuild( | |
|
||
val GraalVM11 = "[email protected]" | ||
|
||
val Scala213 = "2.13.6" | ||
ThisBuild / scalaVersion := Scala213 | ||
ThisBuild / crossScalaVersions := Seq(Scala213) | ||
val Scala3 = "3.1.1" | ||
ThisBuild / scalaVersion := Scala3 | ||
ThisBuild / crossScalaVersions := Seq(Scala3) | ||
ThisBuild / githubWorkflowJavaVersions := Seq(GraalVM11) | ||
|
||
ThisBuild / githubWorkflowPublishTargetBranches := Seq( | ||
|
@@ -67,23 +69,18 @@ def crossPlugin(x: sbt.librarymanagement.ModuleID) = | |
compilerPlugin(x.cross(CrossVersion.full)) | ||
|
||
val compilerPlugins = List( | ||
crossPlugin("org.typelevel" % "kind-projector" % "0.13.2"), | ||
crossPlugin("com.github.cb372" % "scala-typed-holes" % "0.1.11"), | ||
crossPlugin("org.polyvariant" % "better-tostring" % "0.3.15"), | ||
compilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1") | ||
crossPlugin("org.polyvariant" % "better-tostring" % "0.3.15") | ||
) | ||
|
||
val commonSettings = List( | ||
scalacOptions --= List("-Xfatal-warnings"), | ||
scalacOptions += "-Ymacro-annotations", | ||
libraryDependencies ++= List( | ||
"org.typelevel" %% "cats-core" % "2.7.0", | ||
"org.typelevel" %% "cats-effect" % "3.3.12", | ||
"org.typelevel" %% "cats-tagless-macros" % "0.14.0", | ||
"co.fs2" %% "fs2-core" % "3.2.7", | ||
"com.github.valskalla" %% "odin-core" % "0.13.0", | ||
"io.circe" %% "circe-core" % "0.14.1", | ||
"dev.optics" %% "monocle-macro" % "3.1.0", | ||
"io.circe" %% "circe-core" % "0.14.2", | ||
"dev.optics" %% "monocle-core" % "3.1.0", | ||
"com.disneystreaming" %% "weaver-cats" % "0.7.11" % Test, | ||
"com.disneystreaming" %% "weaver-scalacheck" % "0.7.11" % Test | ||
) ++ compilerPlugins, | ||
|
@@ -97,9 +94,8 @@ lazy val gitlab = project | |
libraryDependencies ++= List( | ||
"is.cir" %% "ciris" % "2.3.2", | ||
"com.kubukoz" %% "caliban-gitlab" % "0.1.0", | ||
"io.circe" %% "circe-generic-extras" % "0.14.1", | ||
"io.circe" %% "circe-parser" % "0.14.1" % Test, | ||
"io.circe" %% "circe-literal" % "0.14.1" % Test, | ||
"io.circe" %% "circe-parser" % "0.14.2" % Test, | ||
"io.circe" %% "circe-literal" % "0.14.2" % Test, | ||
"com.softwaremill.sttp.tapir" %% "tapir-core" % "0.18.0-M17", | ||
"com.softwaremill.sttp.tapir" %% "tapir-json-circe" % "0.18.0-M17", | ||
"com.softwaremill.sttp.tapir" %% "tapir-sttp-client" % "0.18.0-M17" | ||
|
@@ -109,18 +105,17 @@ lazy val gitlab = project | |
|
||
lazy val bootstrap = project | ||
.settings( | ||
scalaVersion := "3.0.0", | ||
scalaVersion := Scala3, | ||
libraryDependencies ++= List( | ||
"org.typelevel" %% "cats-core" % "2.7.0", | ||
"org.typelevel" %% "cats-effect" % "3.3.12", | ||
"com.kubukoz" %% "caliban-gitlab" % "0.1.0", | ||
"com.softwaremill.sttp.client3" %% "core" % "3.3.15", | ||
"com.softwaremill.sttp.client3" %% "circe" % "3.3.15", | ||
"io.circe" %% "circe-core" % "0.14.1", | ||
"io.circe" %% "circe-core" % "0.14.2", | ||
crossPlugin("org.polyvariant" % "better-tostring" % "0.3.15") | ||
), | ||
publish / skip := true, | ||
// Compile / mainClass := Some("org.polyvariant.Main"), | ||
githubWorkflowArtifactUpload := false, | ||
nativeImageVersion := "22.1.0", | ||
nativeImageOptions ++= Seq( | ||
|
@@ -195,12 +190,11 @@ lazy val pitgull = | |
"org.http4s" %% "http4s-blaze-server" % "0.23.11", | ||
"org.http4s" %% "http4s-blaze-client" % "0.23.11", | ||
"is.cir" %% "ciris" % "2.3.2", | ||
"io.circe" %% "circe-generic-extras" % "0.14.0", | ||
"io.scalaland" %% "chimney" % "0.6.1", | ||
"io.chrisdavenport" %% "cats-time" % "0.4.0", | ||
"com.github.valskalla" %% "odin-core" % "0.13.0", | ||
"com.github.valskalla" %% "odin-slf4j" % "0.13.0", | ||
"io.github.vigoo" %% "prox-fs2-3" % "0.7.7" | ||
"io.github.vigoo" %% "prox-fs2-3" % "0.7.7", | ||
"io.circe" %% "circe-literal" % "0.14.2" % Test | ||
) | ||
) | ||
.dependsOn(core, gitlab) | ||
|
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
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
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
Oops, something went wrong.