scala - build.sbt 中的 Lagom 属性

标签 scala properties configuration sbt lagom

是否有可在 build.sbt 中使用的所有 Lagom 属性的列表?

示例:

lagomServiceLocatorPort in ThisBuild := 12321
lagomServiceGatewayPort in ThisBuild := 13531

最佳答案

来自LagomPlugin.scala中的源代码(1.3.x 分支):

val lagomRun = taskKey[(String, DevServer)]("Run a Lagom service")
val runAll = taskKey[Unit]("Run all Lagom services")

val lagomServicesPortRange = settingKey[PortRange]("Port range used to assign a port to each Lagom service in the build")

val lagomFileWatchService = settingKey[FileWatchService]("The file watch service to use")
val lagomDevSettings = settingKey[Seq[(String, String)]]("Settings that should be passed to a Lagom app in dev mode")
val lagomServicePort = taskKey[Int]("The port that the Lagom service should run on")

// service locator tasks and settings
val lagomUnmanagedServices = settingKey[Map[String, String]]("External services name and address known by the service location")
val lagomServiceLocatorUrl = settingKey[String]("URL of the service locator")
val lagomServiceLocatorPort = settingKey[Int]("Port used by the service locator")
val lagomServiceGatewayPort = settingKey[Int]("Port used by the service gateway")
val lagomServiceGatewayImpl = settingKey[String]("Implementation of the service gateway: \"netty\" (default) or \"akka-http\" (experimental)")
val lagomServiceLocatorEnabled = settingKey[Boolean]("Enable/Disable the service locator")
val lagomServiceLocatorStart = taskKey[Unit]("Start the service locator")
val lagomServiceLocatorStop = taskKey[Unit]("Stop the service locator")

// cassandra tasks and settings
val lagomCassandraStart = taskKey[Unit]("Start the local cassandra server")
val lagomCassandraStop = taskKey[Unit]("Stop the local cassandra server")
val lagomCassandraPort = settingKey[Int]("Port used by the local cassandra server")
val lagomCassandraEnabled = settingKey[Boolean]("Enable/Disable the cassandra server")
val lagomCassandraCleanOnStart = settingKey[Boolean]("Wipe the cassandra database before starting")
@deprecated("Configure in application.conf instead.", "1.3.2")
val lagomCassandraKeyspace = settingKey[String]("Cassandra keyspace used by a Lagom service")
val lagomCassandraJvmOptions = settingKey[Seq[String]]("JVM options used by the forked cassandra process")
val lagomCassandraMaxBootWaitingTime = settingKey[FiniteDuration]("Max waiting time to start cassandra")

// kafka tasks and settings
val lagomKafkaStart = taskKey[Unit]("Start the local kafka server")
val lagomKafkaStop = taskKey[Unit]("Stop the local kafka server")
val lagomKafkaPropertiesFile = settingKey[Option[File]]("Properties file used by the local kafka broker")
val lagomKafkaEnabled = settingKey[Boolean]("Enable/Disable the kafka server")
val lagomKafkaCleanOnStart = settingKey[Boolean]("Wipe the kafka log before starting")
val lagomKafkaJvmOptions = settingKey[Seq[String]]("JVM options used by the forked kafka process")
@deprecated("Use lagomKafkaZookeeperPort instead", "1.3.6")
val lagomKafkaZookeperPort = settingKey[Int]("Port used by the local zookeeper server (kafka requires zookeeper)")
val lagomKafkaZookeeperPort = settingKey[Int]("Port used by the local zookeeper server (kafka requires zookeeper)")
val lagomKafkaPort = settingKey[Int]("Port used by the local kafka broker")
val lagomKafkaAddress = settingKey[String]("Address of the kafka brokers (comma-separated list)")

关于scala - build.sbt 中的 Lagom 属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45325169/

相关文章:

scala - 如何在 Scala 中创建内部 DSL?

c# - C# 中的非整数索引索引器属性

c# - 属性和方法的区别

database - 如何在运行时更改 Play 2 Framework DB 配置?

multithreading - 如何在 Gatling 中实现特定的线程数

scala - 针对匿名的模式匹配

function - 为什么案例类可以用作参数中的函数

properties - NSStringto 类成员分配崩溃

plugins - 如何呈现 Atlassian 插件的配置屏幕?

java - 如何配置 logback 以创建具有服务器名称的日志文件名