-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
49 lines (38 loc) · 1.22 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
name := """sbt-opencv"""
version := "1.6-SNAPSHOT"
organization := "com.beachape"
sbtPlugin := true
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature", "-Xlint", "-Xlog-free-terms")
publishTo <<= version { v: String =>
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
pomExtra := (
<url>https://github.com/lloydmeta/sbt-opencv</url>
<licenses>
<license>
<name>MIT</name>
<url>http://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git@github.com:lloydmeta/sbt-opencv.git</url>
<connection>scm:git:git@github.com:lloydmeta/sbt-opencv.git</connection>
</scm>
<developers>
<developer>
<id>lloydmeta</id>
<name>Lloyd Chan</name>
<url>https://beachape.com</url>
</developer>
</developers>
)
resolvers += Resolver.sonatypeRepo("releases")
addSbtPlugin("com.beachape" % "sbt-javacpp" % "1.3")