-
Notifications
You must be signed in to change notification settings - Fork 25
/
build.sbt
76 lines (59 loc) · 2.1 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
name := """avatax-rest-v2-api-java"""
organization := "net.avalara.avatax"
version := "24.12.0"
scalaVersion := "2.11.12"
javacOptions ++= Seq("-source", "1.7", "-target", "1.7")
javacOptions in doc := Seq("-source", "1.7", "-Xdoclint:none")
useGpg := true
usePgpKeyHex("7C14D882A238CB42")
publishMavenStyle := true
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
publishArtifact in Test := false
pomIncludeRepository := { _ =>
false
}
pomExtra := (
<url>https://github.com/avadev/AvaTax-REST-V2-JRE-SDK</url>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:avadev/AvaTax-REST-V2-JRE-SDK.git</url>
<connection>scm:git:[email protected]:avadev/AvaTax-REST-V2-JRE-SDK.git</connection>
</scm>
<developers>
<developer>
<id>drheart</id>
<name>Dustin R. Heart</name>
<url>http://www.avalara.com</url>
</developer>
</developers>)
libraryDependencies ++= Seq(
// Uncomment to use Akka
//"com.typesafe.akka" % "akka-actor_2.11" % "2.3.9",
"org.scalatest" %% "scalatest" % "3.0.8" % "test",
"com.google.code.gson" % "gson" % "2.9.0",
"org.apache.httpcomponents" % "httpclient" % "4.5.13",
"org.slf4j" % "slf4j-api" % "2.0.1"
)
// lazy val downloadSwaggerAndGenerateClient = taskKey[Unit]("Generating client from latest swagger.json")
// downloadSwaggerAndGenerateClient := {
// val swaggerDoc = new File("./project/swagger.json")
// val url = new URL("https://sandbox-rest.avatax.com/swagger/v2/swagger.json")
// val json = sbt.io.Using.urlInputStream(url) { in =>
// IO.transfer(in, swaggerDoc); IO.read(swaggerDoc)
// }
// val model = ParseSwagger.parseSwaggerDocument(json)
// ClientGenerator.renderClient(model)
// }
// Compile / compile := (Compile / compile).dependsOn(downloadSwaggerAndGenerateClient).value