project renamed to wson
This commit is contained in:
90
build.sbt
90
build.sbt
@@ -1,4 +1,6 @@
|
||||
name := "worth"
|
||||
import sbt.Keys.libraryDependencies
|
||||
|
||||
name := "wson"
|
||||
|
||||
organization := "net.woggioni"
|
||||
|
||||
@@ -22,67 +24,43 @@ scalacOptions ++= Seq(
|
||||
|
||||
git.useGitDescribe := true
|
||||
//javaOptions in Test += "-Xmx14G"
|
||||
javacOptions in (Compile, compile) ++= Seq("-target", "8", "-source", "8")
|
||||
javacOptions in (Compile, compile) ++= Seq("--release", "8")
|
||||
//scalafmtOnCompile := true
|
||||
libraryDependencies += "org.projectlombok" % "lombok" % "1.18.8" % Provided
|
||||
libraryDependencies += "org.projectlombok" % "lombok" % Versions.lombok % Provided
|
||||
libraryDependencies += "net.woggioni" % "jwo" % "1.0" % Compile
|
||||
|
||||
Compile / packageBin / packageOptions +=
|
||||
Package.ManifestAttributes("Automatic-Module-Name" -> "net.woggioni.worth")
|
||||
Package.ManifestAttributes("Automatic-Module-Name" -> "net.woggioni.wson")
|
||||
|
||||
libraryDependencies += "net.aichler" % "jupiter-interface" % JupiterKeys.jupiterVersion.value % Test
|
||||
libraryDependencies += "org.junit.jupiter" % "junit-jupiter-params" % JupiterKeys.junitJupiterVersion.value % Test
|
||||
libraryDependencies += "com.fasterxml.jackson.core" % "jackson-databind" % Versions.jackson % Test
|
||||
libraryDependencies += "org.tukaani" % "xz" % Versions.xz % Test
|
||||
|
||||
val testDependencies = Seq("com.novocode" % "junit-interface" % "0.11" % Test,
|
||||
"com.fasterxml.jackson.core" % "jackson-databind" % "2.9.6" % Test,
|
||||
"org.tukaani" % "xz" % "1.8" % Test)
|
||||
libraryDependencies ++= testDependencies
|
||||
testOptions += Tests.Argument(TestFrameworks.JUnit, "-q", "-a")
|
||||
enablePlugins(Delombok)
|
||||
enablePlugins(DelombokJavadoc)
|
||||
enablePlugins(JupiterPlugin)
|
||||
|
||||
val antlrVersion = "4.7.2"
|
||||
lazy val worthAntlr = (project in file("antlr")).settings(
|
||||
organization := (organization in LocalRootProject).value,
|
||||
name := "worth-antlr",
|
||||
version := (version in LocalRootProject).value,
|
||||
resourceDirectory := (resourceDirectory in(LocalRootProject, Test)).value,
|
||||
antlr4Version in Antlr4 := antlrVersion,
|
||||
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,
|
||||
).dependsOn(LocalRootProject).enablePlugins(Antlr4Plugin)
|
||||
testOptions += Tests.Argument(jupiterTestFramework, "-q", "-a")
|
||||
|
||||
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)
|
||||
lazy val testUtils = (project in file("test-utils"))
|
||||
|
||||
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)
|
||||
dependsOn(testUtils % "test")
|
||||
|
||||
lazy val worthAntlr = (project in file("antlr"))
|
||||
.dependsOn(LocalRootProject)
|
||||
.dependsOn(testUtils % "test")
|
||||
.enablePlugins(Antlr4Plugin)
|
||||
|
||||
lazy val cli = (project in file("cli"))
|
||||
.dependsOn(LocalRootProject)
|
||||
.enablePlugins(JavaAppPackaging)
|
||||
.enablePlugins(UniversalPlugin)
|
||||
.enablePlugins(JlinkPlugin)
|
||||
|
||||
lazy val benchmark = (project in file("benchmark"))
|
||||
.dependsOn(LocalRootProject)
|
||||
.dependsOn(worthAntlr)
|
||||
.dependsOn(testUtils)
|
||||
.enablePlugins(JavaAppPackaging)
|
||||
.enablePlugins(UniversalPlugin)
|
||||
|
Reference in New Issue
Block a user