Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
141 lines (93 sloc) 3.99 KB
import sqlshell.build.defs._
// ---------------------------------------------------------------------------
// Basic settings
name := "SQLShell"
version := "0.8.1"
organization := "org.clapper"
scalaVersion := "2.9.1"
// ---------------------------------------------------------------------------
// Additional compiler options and plugins
scalacOptions ++= Seq("-P:continuations:enable", "-deprecation", "-unchecked")
autoCompilerPlugins := true
libraryDependencies <<= (scalaVersion, libraryDependencies) { (ver, deps) =>
deps :+ compilerPlugin("org.scala-lang.plugins" % "continuations" % ver)
}
// ---------------------------------------------------------------------------
// Local settings. See project/defs.scala
seq(sqlshell.build.defs.sqlshellSettings: _*)
// Ensure that the about info properties file is built before packaging.
packageBin in Compile <<=
(packageBin in Compile).dependsOn(aboutInfo in SQLShell)
// ---------------------------------------------------------------------------
// SBT LWM
seq(LWM.settings: _*)
sources in LWM.Config <++= baseDirectory map (d =>
(d / "src" / "docs" ** "*.md").get
)
sources in LWM.Config <++= baseDirectory map (d =>
(d / "README.md").get ++ (d / "LICENSE.md").get ++ (d / "FAQ.md").get
)
LWM.targetDirectory in LWM.Config <<= baseDirectory(_ / "target" / "docs")
LWM.cssFile in LWM.Config <<=
baseDirectory(d => Some(d / "src" / "docs" / "markdown.css"))
LWM.flatten in LWM.Config := true
LWM.encoding in LWM.Config := "ISO-8859-1"
doc in Compile <<= (doc in Compile).dependsOn(
LWM.translate in LWM.Config
)
// ---------------------------------------------------------------------------
// IzPack
seq(IzPack.settings: _*)
IzPack.installSourceDir in IzPack.Config <<=
baseDirectory(_ / "src" / "main" / "izpack")
IzPack.configFile in IzPack.Config <<=
(IzPack.installSourceDir in IzPack.Config) (_ / "install.yml")
IzPack.variables in IzPack.Config += ("toolName", "SQLShell")
IzPack.variables in IzPack.Config <++= baseDirectory {bd =>
Seq(("targetDocDir", (bd / "target" / "docs").toString),
("targetDir", (bd / "target").toString))
}
IzPack.variables in IzPack.Config <+=
(baseDirectory, scalaVersion, version) { (bd, sv, v) =>
("sqlshellJar", (bd / "target" / ("scala_" + sv) /
("sqlshell_%s-%s.jar" format (sv, v))).toString)
}
IzPack.createXML in IzPack.Config <<=
(IzPack.createXML in IzPack.Config).dependsOn(doc in Compile)
// ---------------------------------------------------------------------------
// Pamflet
//seq(org.clapper.sbt.pamflet.PamfletPlugin.pamfletSettings: _*)
//sourceDirectories in Pamflet <<= baseDirectory(bd =>
// Seq(bd / "src" / "docs" / "users-guide")
//)
//logLevel in Pamflet := Level.Debug
// Force an edit of the pamflet template properties file, to substitute
// variables.
//generate in Pamflet <<= (generate in Pamflet).dependsOn(
// EditSource.edit in EditSource.Config
//)
// ---------------------------------------------------------------------------
// Edit Source settings. Only used to preprocess Pamflet stuff.
seq(EditSource.settings: _*)
sources in EditSource.Config <+= baseDirectory map (
_ / "src" / "docs" / "pamflet-template.properties"
)
EditSource.targetDirectory in EditSource.Config <<= baseDirectory(
_ / "src" / "docs" / "users-guide"
)
EditSource.flatten in EditSource.Config := true
EditSource.variables in EditSource.Config <+= name {name => ("name", name)}
EditSource.variables in EditSource.Config <+=
version {version => ("version", version)}
// ---------------------------------------------------------------------------
// Other dependendencies
libraryDependencies ++= Seq(
"jline" % "jline" % "2.6",
"org.clapper" %% "grizzled-scala" % "1.0.12",
"org.clapper" %% "argot" % "0.3.8",
"org.joda" % "joda-convert" % "1.1",
"joda-time" % "joda-time" % "2.0",
"org.scala-tools.time" %% "time" % "0.5",
"net.sf.opencsv" % "opencsv" % "2.0"
)
libraryDependencies <+= scalaVersion("org.scala-lang" % "scala-library" % _)
Jump to Line
Something went wrong with that request. Please try again.