added benchmark subproject
This commit is contained in:
27
build.sbt
27
build.sbt
@@ -15,7 +15,6 @@ scalacOptions ++= Seq(
|
||||
)
|
||||
|
||||
git.useGitDescribe := true
|
||||
fork := true
|
||||
//javaOptions in Test += "-Xmx14G"
|
||||
//scalafmtOnCompile := true
|
||||
libraryDependencies += "org.projectlombok" % "lombok" % "1.18.8" % Provided
|
||||
@@ -36,10 +35,13 @@ lazy val worthAntlr = (project in file("antlr")).settings(
|
||||
antlr4PackageName in Antlr4 := Some("net.woggioni.worth.antlr"),
|
||||
skip in publish := true,
|
||||
unmanagedClasspath in Test += (classDirectory in (LocalRootProject, Test)).value,
|
||||
unmanagedClasspath in Runtime += (resourceDirectory in (LocalRootProject, Test)).value,
|
||||
libraryDependencies += "com.fasterxml.jackson.core" % "jackson-databind" % "2.9.6" % Test,
|
||||
libraryDependencies += "org.tukaani" % "xz" % "1.8" % Test,
|
||||
libraryDependencies += "org.antlr" % "antlr4" % antlrVersion % Test,
|
||||
libraryDependencies += "org.antlr" % "antlr4-runtime" % antlrVersion % Test,
|
||||
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % Test,
|
||||
libraryDependencies += "org.projectlombok" % "lombok" % "1.18.8" % Provided,
|
||||
libraryDependencies ++= testDependencies
|
||||
).dependsOn(LocalRootProject).enablePlugins(Antlr4Plugin)
|
||||
|
||||
lazy val cli = (project in file("cli")).settings(
|
||||
@@ -52,4 +54,23 @@ lazy val cli = (project in file("cli")).settings(
|
||||
maintainer := "oggioni.walter@gmail.com",
|
||||
unmanagedClasspath in Test += (classDirectory in (LocalRootProject, Test)).value,
|
||||
libraryDependencies += "com.beust" % "jcommander" % "1.72"
|
||||
).dependsOn(LocalRootProject).enablePlugins(JavaAppPackaging).enablePlugins(UniversalPlugin)
|
||||
).dependsOn(LocalRootProject).enablePlugins(JavaAppPackaging).enablePlugins(UniversalPlugin)
|
||||
|
||||
lazy val benchmark = (project in file("benchmark")).settings(
|
||||
organization := (organization in LocalRootProject).value,
|
||||
name := "worth-benchmark",
|
||||
version := (version in LocalRootProject).value,
|
||||
resourceDirectory in Compile := (resourceDirectory in(LocalRootProject, Test)).value,
|
||||
skip in publish := true,
|
||||
maintainer := "oggioni.walter@gmail.com",
|
||||
mainClass := Some("net.woggioni.worth.benchmark.Main"),
|
||||
javaOptions in Universal += "-J-Xmx4G",
|
||||
fork := true,
|
||||
libraryDependencies += "com.fasterxml.jackson.core" % "jackson-databind" % "2.9.6",
|
||||
libraryDependencies += "org.tukaani" % "xz" % "1.8",
|
||||
libraryDependencies += "com.beust" % "jcommander" % "1.72",
|
||||
libraryDependencies += "org.projectlombok" % "lombok" % "1.18.8" % Provided
|
||||
).dependsOn(LocalRootProject)
|
||||
.dependsOn(worthAntlr)
|
||||
.enablePlugins(JavaAppPackaging)
|
||||
.enablePlugins(UniversalPlugin)
|
||||
|
Reference in New Issue
Block a user