-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.sbt
51 lines (31 loc) · 1.65 KB
/
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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Metadata
name := "pdfocr"
version := "0.0.12"
homepage := Some(url("https://github.com/overview/pdfocr"))
organization := "org.overviewproject"
organizationName := "Overview Services Inc."
organizationHomepage := Some(url("https://www.overviewdocs.com"))
description := "Library that shells to Tesseract to make PDFs searchable"
licenses += "AGPLv3" -> url("http://www.gnu.org/licenses/agpl-3.0.html")
fork in (Compile, run) := true // Main calls System.exit() to give proper return codes
// Compile settings
scalaVersion := "2.12.8"
scalacOptions += "-deprecation"
libraryDependencies ++= Seq(
"org.bouncycastle" % "bcmail-jdk15on" % "1.60", // https://pdfbox.apache.org/2.0/dependencies.html
"org.bouncycastle" % "bcprov-jdk15on" % "1.60", // https://pdfbox.apache.org/2.0/dependencies.html
"org.bouncycastle" % "bcpkix-jdk15on" % "1.60", // https://pdfbox.apache.org/2.0/dependencies.html
"com.github.jai-imageio" % "jai-imageio-core" % "1.4.0", // for TIFF support
"com.github.jai-imageio" % "jai-imageio-jpeg2000" % "1.3.0", // for JPEG2000 support
"org.apache.pdfbox" % "jbig2-imageio" % "3.0.0",
"org.apache.pdfbox" % "pdfbox" % "2.0.13",
"org.scalatest" %% "scalatest" % "3.0.5" % "test",
"org.mockito" % "mockito-core" % "2.18.3" % "test",
"org.slf4j" % "jcl-over-slf4j" % "1.7.25" % "test", // So we can mute warnings during testing
"org.slf4j" % "slf4j-simple" % "1.7.25" % "test" // So we can mute warnings during testing
)
// Test settings
fork in Test := true
javaOptions in Test ++= Seq("-Dorg.slf4j.simpleLogger.defaultLogLevel=INFO")
testOptions in Test += Tests.Argument("-oDF")
publishTo := Some(Opts.resolver.sonatypeStaging)