Skip to content

Commit

Permalink
update scala and sbt
Browse files Browse the repository at this point in the history
  • Loading branch information
bilal-fazlani committed Jun 30, 2024
1 parent d463094 commit c598f37
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sbtwelcome._
import scala.sys.process._

val scala3Version = "3.3.1"
val scala3Version = "3.4.2"

ThisBuild / scalaVersion := scala3Version
ThisBuild / organization := "com.bilal-fazlani"
Expand Down Expand Up @@ -82,7 +82,7 @@ bootstrap := {

lazy val root = project
.in(file("."))
.settings(name := "zio-maelstrom-root", publish / skip := true, scalacOptions += "-Wunused:all")
.settings(name := "zio-maelstrom-root", publish / skip := true)
.aggregate(zioMaelstrom, echo, uniqueIds, broadcast)

lazy val zioMaelstrom = project
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.9.8
sbt.version=1.10.0
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import zio.json.*
import zio.*

extension (s: String) infix def /(string: String): Path = Path.of(s, string)
extension (p: Path) infix def /(string: String): Path = p resolve string
extension (p: Path) infix def /(string: String): Path = p.resolve(string)

extension (nodeId: NodeId)
def ask[Res <: Reply] = new AskPartiallyApplied[Res](nodeId)
def send[A <: Sendable: JsonEncoder](body: A) = MessageSender.send(body, nodeId)
infix def ask[Res <: Reply] = new AskPartiallyApplied[Res](nodeId)
infix def send[A <: Sendable: JsonEncoder](body: A) = MessageSender.send(body, nodeId)

def getMyNodeId = ZIO.service[Initialisation].map(_.context.me)
def getOtherNodeIds = ZIO.service[Initialisation].map(_.context.others)
Expand Down

0 comments on commit c598f37

Please sign in to comment.