-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
78 lines (57 loc) · 2.58 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
// Publication information
name := "umls-rrf"
organization := "com.ggvaidya"
version := "0.1-SNAPSHOT"
// Code license
licenses := Seq("MIT" -> url("https://opensource.org/licenses/MIT"))
// Scalac options.
scalaVersion := "2.13.1"
scalacOptions := Seq("-unchecked", "-deprecation", "-encoding", "utf8", "-Ywarn-unused")
addCompilerPlugin(scalafixSemanticdb)
scalacOptions in Test ++= Seq("-Yrangepos")
// Set up the main class.
mainClass in (Compile, run) := Some("org.renci.umls.CodeMapper")
// Fork when running.
fork in run := true
// Set up testing.
testFrameworks += new TestFramework("utest.runner.Framework")
// Code formatting and linting tools.
wartremoverWarnings ++= Warts.unsafe
addCommandAlias(
"scalafixCheckAll",
"; compile:scalafix --check ; test:scalafix --check"
)
// Add additional repositories.
resolvers += "EBI Repository" at "https://www.ebi.ac.uk/Tools/maven/repos/content/groups/ebi-repo/"
// Library dependencies.
libraryDependencies ++= {
Seq(
// Logging
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.2",
"com.outr" %% "scribe" % "2.7.12",
// Command line argument parsing.
"org.rogach" %% "scallop" % "3.3.2",
// Add support for CSV.
"com.github.tototoshi" %% "scala-csv" % "1.3.6",
// Import Apache Jena to read ontologies.
"org.apache.jena" % "jena-core" % "3.14.0",
// https://mvnrepository.com/artifact/org.apache.jena/jena-arq
"org.apache.jena" % "jena-arq" % "3.14.0",
// Add support for CSV
"com.github.tototoshi" %% "scala-csv" % "1.3.6",
// Add API for accessing the Ontology Lookup Service.
"uk.ac.ebi.pride.utilities" % "ols-client" % "2.11",
// We need JDBC connection pooling so we can start new connections as needed.
"org.apache.commons" % "commons-dbcp2" % "2.7.0",
// Add support for SQLite via JDBC
"org.xerial" % "sqlite-jdbc" % "3.30.1",
// Add support for calculating hashes for files.
"commons-codec" % "commons-codec" % "1.14",
// Add methods for storing information in-memory.
"com.github.cb372" %% "scalacache-core" % "0.28.0",
"com.github.cb372" %% "scalacache-caffeine" % "0.28.0",
"com.github.ben-manes.caffeine" % "caffeine" % "2.8.1",
// Testing
"com.lihaoyi" %% "utest" % "0.7.1" % "test"
)
}