Skip to content

Commit

Permalink
bumps
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesward committed May 25, 2021
1 parent 467ef1a commit 4d29152
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ enablePlugins(GraalVMNativeImagePlugin, DockerPlugin)

name := "hello-zio-http-graalvm"

scalaVersion := "2.13.5"
scalaVersion := "2.13.6"

scalacOptions ++= Seq(
"-unchecked",
Expand All @@ -19,8 +19,8 @@ scalacOptions ++= Seq(
)

libraryDependencies ++= Seq(
"io.d11" % "zhttp" % "1.0.0-RC1",
"org.scalameta" %% "svm-subs" % "20.2.0",
"io.d11" %% "zhttp" % "1.0.0.0-RC16",
"org.scalameta" %% "svm-subs" % "20.2.0",
)

Global / sources in (Compile,doc) := Seq.empty
Expand All @@ -34,7 +34,7 @@ genBaseImage := Def.task {
val streams = Keys.streams.value

val baseName = "ghcr.io/graalvm/graalvm-ce"
val tag = "21.0.0"
val tag = "21.1.0"

val imageName = s"${baseName.replace('/', '-')}-native-image:$tag"
import sys.process._
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.4.8
sbt.version=1.5.2
4 changes: 3 additions & 1 deletion src/main/scala/WebApp.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import zio.{App, ExitCode, URIO}

object WebApp extends App {

val app = Http.text("hello, world")
val app = Http.collect[Request] {
case Method.GET -> Root => Response.text("hello, world")
}

override def run(args: List[String]): URIO[zio.ZEnv, ExitCode] = Server.start(8080, app).exitCode

Expand Down

0 comments on commit 4d29152

Please sign in to comment.