Skip to content

Commit fa0c779

Browse files
committed
Add sbt build definition
1 parent 16f6150 commit fa0c779

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed

build.sbt

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// TODO Make it a cross project when Scala.js is released for 2.13.0-M4
2+
3+
scalaVersion := "2.13.0-M4-pre-20d3c21"
4+
5+
organization := "org.scala-lang"
6+
7+
version := "0.1.0-SNAPSHOT"
8+
9+
scalacOptions ++= Seq("-deprecation", "-feature", "-opt-warnings", "-unchecked", "-language:higherKinds")
10+
11+
scalacOptions in (Compile, doc) ++= Seq("-implicits", "-groups")
12+
13+
testOptions += Tests.Argument(TestFrameworks.JUnit, "-q", "-v", "-s", "-a")
14+
15+
fork in Test := true
16+
17+
parallelExecution in Test := false
18+
19+
homepage := Some(url("https://github.com/scala/scala-collection-contrib"))
20+
21+
licenses := Seq("BSD 3-clause" -> url("http://opensource.org/licenses/BSD-3-Clause"))
22+
23+
scmInfo := Some(
24+
ScmInfo(
25+
url("https://github.com/scala/scala-collection-contrib"),
26+
"scm:git:[email protected]:scala/scala-collection-contrib.git"
27+
)
28+
)
29+
30+
pomExtra :=
31+
<developers>
32+
<developer><id>julienrf</id><name>Julien Richard-Foy</name></developer>
33+
<developer><id>szeiger</id><name>Stefan Zeiger</name></developer>
34+
</developers>
35+
36+
// For publishing snapshots
37+
credentials ++= (
38+
for {
39+
username <- sys.env.get("SONATYPE_USERNAME")
40+
password <- sys.env.get("SONATYPE_PASSWORD")
41+
} yield Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", username, password)
42+
).toList
43+
44+
libraryDependencies ++= Seq(
45+
"junit" % "junit" % "4.11",
46+
"com.novocode" % "junit-interface" % "0.11" % Test,
47+
"org.openjdk.jol" % "jol-core" % "0.5"
48+
)
49+

project/build.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sbt.version=0.13.17

project/plugins.sbt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "1.1")
2+
3+
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.1")
4+

0 commit comments

Comments
 (0)