-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
50 lines (44 loc) · 1.63 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
import sbt.Keys._
import sbt.Tests
lazy val root = project.in(file(".")).
aggregate(vecMathJS, vecMathJVM).
settings(
publish := {},
publishLocal := {}
)
lazy val vecMath = crossProject.in(file(".")).settings(
crossScalaVersions := Seq("2.10.6", "2.11.7"),
scalaVersion := "2.11.7",
organization := "com.scryetek",
name := "vecmath",
version := "0.3.1",
description := "A simple vector maths library for graphics programming.",
libraryDependencies += "org.scalacheck" %% "scalacheck" % "1.12.5" % "test",
testOptions in Test += Tests.Argument(TestFrameworks.ScalaCheck, "-minSuccessfulTests", "5000"),
homepage := Some(url("https://github.org/mseddon/vecmath")),
scmInfo := Some(ScmInfo(
url("https://github.com/mseddon/vecmath"),
"scm:git:[email protected]:mseddon/vecmath.git",
Some("scm:git:[email protected]:mseddon/vecmath.git"))),
publishMavenStyle := true,
licenses := Seq(("BSD-3-Clause", url("http://opensource.org/licenses/BSD-3-Clause"))),
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")
},
pomIncludeRepository := { _ => false },
pomExtra := (
<developers>
<developer>
<id>mseddon</id>
<name>Matt Seddon</name>
<url>https://github.com/mseddon/</url>
</developer>
</developers>
)
)
lazy val vecMathJVM = vecMath.jvm
lazy val vecMathJS = vecMath.js