-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.sbt
75 lines (58 loc) · 2.51 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
//requires partner, apex, metadata and tooling jars generated by wsc and placed in ./lib folder
name := "tooling-force.com"
version := "0.1-SNAPSHOT"
scalaVersion := "2.13.4"
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-unchecked",
"-Xfatal-warnings",
//"-Xlint",
//"-Yno-adapted-args",
//"-Ywarn-numeric-widen",
//"-Ywarn-value-discard",
//"-Xfuture",
//"-Ywarn-unused-import"
// Excluding -byname-implicit is required for Scala 2.13 due to https://github.com/scala/bug/issues/12072
"-Xlint:_,-byname-implicit", // without this parameter circe deriveDecoder results in: Block result was adapted via implicit conversion
)
// disable generation of scala-<version> folders, we do not need cross compilation
crossPaths := false
Compile / doc / sources := List() // do NOT generate Scaladoc, it is a waste of time
// Get rid of scala-{version} folders
Compile / sourceDirectories ~= ( dirs =>
dirs.filterNot(_.absolutePath.endsWith("-2.11")).filterNot(_.absolutePath.endsWith("-2.12"))
)
resolvers ++= Seq(
"Sonatype OSS Releases" at "https://oss.sonatype.org/content/repositories/releases/",
"Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/"
)
val sfdcAPIVersion = "61.1.0"
//see: https://central.sonatype.com/namespace/com.force.api
libraryDependencies ++= Seq(
"com.force.api" % "force-wsc" % "61.1.0",
"com.force.api" % "force-partner-api" % sfdcAPIVersion,
"com.force.api" % "force-metadata-api" % sfdcAPIVersion,
"com.force.api" % "force-apex-api" % sfdcAPIVersion
)
// logging
//libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.2.3"
//libraryDependencies += "com.typesafe.scala-logging" %% "scala-logging" % "3.9.2"
//libraryDependencies += "org.slf4j" % "slf4j-api" % "1.7.21"
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.1.1" % "test",
"com.typesafe.akka" %% "akka-actor" % "2.6.9"
)
libraryDependencies += "io.spray" %% "spray-json" % "1.3.5"
// embedded web server
val jettyVersion="9.4.0.v20161208"
libraryDependencies ++= Seq(
"org.eclipse.jetty" % "jetty-webapp" % jettyVersion
)
//exportJars := true
lazy val apexScanner = RootProject(file("../ApexScanner"))
lazy val main = Project(id = "tooling-force-com", base = file("."))
.dependsOn(apexScanner % "compile->compile;test->test") // "compile->compile;test->test" is needed to allow referencing test code from ApexScanner from "tooling-force-com" module
.settings(
)