构建和编译的方法
sbt clean "project leads-web" "universal:packageZipTarball"
常用命令
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
reload;update;clean;compile
project a
run "-Dotel.resource.attributes=serviceName=iouy"
coursierDependencyTree
sbt -jvm-debug 9999 run
sbt -J-javaagent:skywalking-agent.jar -jvm-debug 9999 run
|
ORM
ebean
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| lazy val `model-base` = (project in file("./model/model-base")) .enablePlugins(PlayEbean) .settings( name := "model-base", modelSettings, libraryDependencies ++= Seq( "io.ebean" % "ebean" % "11.15.1", "io.ebean" % "ebean-agent" % "11.11.1" ) ) .dependsOn(`commons`)
val noDocuments = Seq( sources in(Compile, doc) := Seq.empty, publishArtifact in(Compile, packageDoc) := false )
val modelSettings = Seq( libraryDependencies += lombok, playEbeanDebugLevel := ebeanLogLevel, playEbeanVersion := "5.0.2", testOptions in Test := Seq(Tests.Argument(TestFrameworks.JUnit, "-a", "-v")), playEbeanModels in Compile := Seq("xxx.models.*"), dependencyOverrides += "org.javassist" % "javassist" % "3.23.1-GA" ) ++ noDocuments
|
ExpressionList
表达式列表,类似其他 ORM 框架里的 example。
这种方法优于又臭又长的方法名查询的 Spring-XXX-Data 模式。