-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sbt
58 lines (50 loc) · 1.99 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
name := "google-api-scala"
organization := "edu.eckerd"
scalaVersion := "2.12.4"
crossScalaVersions := Seq("2.11.12", scalaVersion.value)
libraryDependencies ++= List(
"com.typesafe" % "config" % "1.3.1",
"org.scalatest" %% "scalatest" % "3.0.1" % "test",
"com.google.api-client" % "google-api-client" % "1.22.0",
"com.google.apis" % "google-api-services-admin-directory" % "directory_v1-rev67-1.22.0",
"com.google.apis" % "google-api-services-calendar" % "v3-rev180-1.22.0",
// "com.google.apis" % "google-api-services-gmail" % "v1-rev41-1.22.0",
"com.google.apis" % "google-api-services-drive" % "v3-rev23-1.22.0"
)
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature")
resolvers += "Typesafe Releases" at "http://repo.typesafe.com/typesafe/maven-releases/"
fork in run := 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/EckerdCollege/google-api-scala</url>
<licenses>
<license>
<name>Apache-style</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:EckerdCollege/google-api-scala.git</url>
<connection>scm:[email protected]:EckerdCollege/google-api-scala.git</connection>
</scm>
<developers>
<developer>
<id>ChristopherDavenport</id>
<name>Christopher Davenport</name>
<email>[email protected]</email>
</developer>
</developers>
)
credentials in ThisBuild ++= (for {
username <- Option(System.getenv().get("SONATYPE_USERNAME"))
password <- Option(System.getenv().get("SONATYPE_PASSWORD"))
} yield Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", username, password)).toSeq