diff options
Diffstat (limited to 'contrib/playlib/src/mill/playlib/Server.scala')
-rw-r--r-- | contrib/playlib/src/mill/playlib/Server.scala | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/contrib/playlib/src/mill/playlib/Server.scala b/contrib/playlib/src/mill/playlib/Server.scala new file mode 100644 index 00000000..0b7b086a --- /dev/null +++ b/contrib/playlib/src/mill/playlib/Server.scala @@ -0,0 +1,24 @@ +package mill +package playlib + +import mill.scalalib._ + +private[playlib] trait Server extends ScalaModule with Version { + + def nettyServer = T { component("play-netty-server") } + + def akkaHttpServer = T { component("play-akka-http-server") } + + def playServerProvider = T { akkaHttpServer() } + + + override def runIvyDeps = T { + super.runIvyDeps() ++ Agg(playServerProvider()) + } + + override def mainClass = T { Some("play.core.server.ProdServerStart") } +} + + + + |