Skip to content

Commit

Permalink
moved two parser jars to separate projects
Browse files Browse the repository at this point in the history
  • Loading branch information
Web Verifier Account committed Jul 22, 2017
1 parent 0c79dc2 commit adb776d
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 6 deletions.
41 changes: 35 additions & 6 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,41 @@ lazy val commonSettings = Seq(
version := "2017-07-21-SNAPSHOT",
scalaVersion := "2.11.8",
crossScalaVersions := Seq("2.11.8", "2.12.1"),
publishTo := Some(Resolver.file("file", new File( "./" )) )
publishTo := Some(Resolver.file("file", new File( "/home/wv/public_html/maven/" )) )
)

// Jar files for the parsers

lazy val parserSettings = Seq(
publishArtifact in packageDoc := false,
publishArtifact in packageSrc := false,
exportJars := true,
crossPaths := true
)

lazy val ccParser = (project in file("cc-parser")).
settings(commonSettings: _*).
settings(parserSettings: _*).
settings(
name := "Eldarica-CC-parser",
packageBin in Compile := baseDirectory.value / "cc-parser.jar"
).
disablePlugins(AssemblyPlugin)

lazy val tplspecParser = (project in file("template-parser")).
settings(commonSettings: _*).
settings(parserSettings: _*).
settings(
name := "Eldarica-tplspec-parser",
packageBin in Compile := baseDirectory.value / "tplspec-parser.jar"
).
disablePlugins(AssemblyPlugin)

// Actual project

lazy val root = (project in file(".")).
aggregate(ccParser, tplspecParser).
dependsOn(ccParser, tplspecParser).
settings(commonSettings: _*).
//
settings(
Expand All @@ -19,11 +48,11 @@ lazy val root = (project in file(".")).
mainClass in Compile := Some("lazabs.Main"),
//

unmanagedJars in Compile <++= baseDirectory map { base =>
val baseDirectories = (base / "lib") +++ (base / "flata")
val customJars = (baseDirectories ** "*.jar") // +++ (base / "d" / "my.jar")
customJars.classpath
},
unmanagedJars in Compile <++= baseDirectory map { base =>
val baseDirectories = (base / "lib") +++ (base / "flata")
val customJars = (baseDirectories ** "*.jar") // +++ (base / "d" / "my.jar")
customJars.classpath
},

// exclude any folders
/* excludeFilter in Compile := {
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit adb776d

Please sign in to comment.