-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.sbt
23 lines (18 loc) · 857 Bytes
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name := "royalroad-downloader"
version := "SNAPSHOT"
scalaVersion := "2.11.11"
libraryDependencies += "org.scala-lang.modules" %% "scala-xml" % "1.0.5"
libraryDependencies += "net.ruippeixotog" %% "scala-scraper" % "1.2.1"
libraryDependencies += "org.rogach" %% "scallop" % "1.0.1"
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.5" % "test"
libraryDependencies += "org.scala-lang.modules" % "scala-java8-compat_2.11" % "0.9.1"
// inject version info
resourceGenerators in Compile += Def.task {
val file = (resourceManaged in Compile).value / "version.properties"
val props = new java.util.Properties()
props.put("version", version.value)
IO.write(props, "Version information", file)
Seq(file)
}.taskValue
mainClass in (Compile, run) := Some("com.aivean.royalroad.Main")
mainClass in assembly := Some("com.aivean.royalroad.Main")