-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.sbt
67 lines (52 loc) · 1.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
name := """sbt-javacv"""
version := "1.18-SNAPSHOT"
organization := "org.bytedeco"
scalaVersion := "2.12.8"
sbtVersion in Global := {
if (scalaVersion.value.startsWith("2.12"))
"1.2.7"
else
"0.13.17"
}
crossSbtVersions := Vector("0.13.17", "1.2.7")
scalaCompilerBridgeSource := {
val sv = appConfiguration.value.provider.id.version
("org.scala-sbt" % "compiler-interface" % sv % "component").sources
}
sbtPlugin := true
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature", "-Xlint", "-Xlog-free-terms")
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (version.value.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/bytedeco/sbt-javacv</url>
<licenses>
<license>
<name>MIT</name>
<url>http://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:bytedeco/sbt-javacv.git</url>
<connection>scm:git:[email protected]:bytedeco/sbt-javacv.git</connection>
</scm>
<developers>
<developer>
<id>lloydmeta</id>
<name>Lloyd Chan</name>
<url>https://beachape.com</url>
</developer>
</developers>
resolvers ++= Seq(
Resolver.sonatypeRepo("releases"),
Resolver.sonatypeRepo("snapshots")
)
addSbtPlugin("org.bytedeco" % "sbt-javacpp" % "1.14")