Skip to content

Commit

Permalink
update Scala2 dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lemastero committed Nov 2, 2024
1 parent 8f4ceed commit 49cba15
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
15 changes: 3 additions & 12 deletions scala2/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,11 @@ name := "exampleScala2"

version := "0.0.1"

lazy val scala212 = "2.12.18"
lazy val scala213 = "2.13.12"
scalaVersion := "2.13.15"

scalaVersion := scala213
resolvers ++= Resolver.sonatypeOssRepos("snapshots")

crossScalaVersions := List(scala212, scala213)

resolvers += Resolver.sonatypeRepo("snapshots")

lazy val zioVersion = "2.0.22"
lazy val zioVersion = "2.1.11"

libraryDependencies ++= Seq(
"dev.zio" %% "zio" % zioVersion,
Expand All @@ -24,7 +19,3 @@ libraryDependencies ++= Seq(
scalacOptions ++= Seq(
"-encoding", "UTF-8"
)

addCompilerPlugin("org.typelevel" %% "kind-projector" % "0.13.2" cross CrossVersion.full)

classLoaderLayeringStrategy := ClassLoaderLayeringStrategy.Flat
1 change: 1 addition & 0 deletions scala2/project/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sbt.version=1.10.3
2 changes: 2 additions & 0 deletions scala2/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.4.2")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2")
2 changes: 2 additions & 0 deletions scala2/src/main/scala/examples/adts.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package examples

object adts {

sealed trait Rgb
Expand Down

0 comments on commit 49cba15

Please sign in to comment.