added cli utility
This commit is contained in:
20
build.sbt
20
build.sbt
@@ -18,7 +18,7 @@ git.useGitDescribe := true
|
||||
fork := true
|
||||
//javaOptions in Test += "-Xmx14G"
|
||||
//scalafmtOnCompile := true
|
||||
libraryDependencies += "org.projectlombok" % "lombok" % "1.18.8"
|
||||
libraryDependencies += "org.projectlombok" % "lombok" % "1.18.8" % Provided
|
||||
|
||||
val testDependencies = Seq("com.novocode" % "junit-interface" % "0.11" % Test,
|
||||
"com.fasterxml.jackson.core" % "jackson-databind" % "2.9.6" % Test,
|
||||
@@ -36,8 +36,20 @@ 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,
|
||||
libraryDependencies += "org.antlr" % "antlr4" % antlrVersion % Compile,
|
||||
libraryDependencies += "org.antlr" % "antlr4-runtime" % antlrVersion,
|
||||
libraryDependencies += "org.projectlombok" % "lombok" % "1.18.8",
|
||||
libraryDependencies += "org.antlr" % "antlr4" % antlrVersion % Test,
|
||||
libraryDependencies += "org.antlr" % "antlr4-runtime" % antlrVersion % Test,
|
||||
libraryDependencies += "org.projectlombok" % "lombok" % "1.18.8" % Provided,
|
||||
libraryDependencies ++= testDependencies
|
||||
).dependsOn(LocalRootProject).enablePlugins(Antlr4Plugin)
|
||||
|
||||
lazy val cli = (project in file("cli")).settings(
|
||||
organization := (organization in LocalRootProject).value,
|
||||
name := "worth-cli",
|
||||
version := (version in LocalRootProject).value,
|
||||
resourceDirectory := (resourceDirectory in(LocalRootProject, Test)).value,
|
||||
skip in publish := true,
|
||||
mainClass := Some("net.woggioni.worth.cli.Main"),
|
||||
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)
|
Reference in New Issue
Block a user