Skip to content

Commit deb22dd

Browse files
committed
more build stuff
1 parent 8d4b0a5 commit deb22dd

File tree

3 files changed

+47
-3
lines changed

3 files changed

+47
-3
lines changed

build.sbt

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ libraryDependencies += ("org.scalatest" % "scalatest_2.11" % "2.2.2").
3636
parallelExecution in Test := false
3737

3838
// disable publishing of main docs
39-
publishArtifact in (Compile, packageDoc) := false
39+
// publishArtifact in (Compile, packageDoc) := false
4040

4141

4242
// continuations
@@ -50,6 +50,12 @@ scalacOptions += "-P:continuations:enable"
5050
scoverage.ScoverageSbtPlugin.ScoverageKeys.coverageHighlighting := false
5151

5252
// maven publishing
53+
publishMavenStyle := true
54+
55+
publishArtifact in Test := false
56+
57+
pomIncludeRepository := { _ => false }
58+
5359
publishTo := {
5460
val nexus = "https://oss.sonatype.org/"
5561
val repo = if (version.value.trim.endsWith("SNAPSHOT"))
@@ -58,3 +64,33 @@ publishTo := {
5864
"releases" at nexus + "service/local/staging/deploy/maven2"
5965
Some(repo)
6066
}
67+
68+
releasePublishArtifactsAction := PgpKeys.publishSigned.value
69+
70+
sonatypeProfileName := "org.scala-lang"
71+
72+
// Invalid POM: Project URL missing, License information missing, SCM URL missing, Developer information missing
73+
74+
description := "Lightweight Modular Staging"
75+
76+
homepage := Some(url("https://scala-lms.github.io"))
77+
78+
licenses := List("BSD-like" -> url("http://github.com/TiarkRompf/virtualization-lms-core/tree/master/LICENSE"))
79+
80+
scmInfo := Some(ScmInfo(url("https://github.com/TiarkRompf/virtualization-lms-core"), "[email protected]:TiarkRompf/virtualization-lms-core.git"))
81+
82+
// developers := List(Developer("tiarkrompf", "Tiark Rompf", "@tiarkrompf", url("http://github.com/tiarkrompf")))
83+
84+
pomExtra in Global := {
85+
<developers>
86+
<developer>
87+
<id>tiarkrompf</id>
88+
<name>Tiark Rompf</name>
89+
<url>https://github.com/tiarkrompf</url>
90+
</developer>
91+
</developers>
92+
}
93+
94+
95+
96+
// NOTE: sonatypeRelease must be run explicitly, after `sbt release`

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#Project properties
2-
sbt.version=0.13.6
2+
sbt.version=0.13.8

project/plugin.sbt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
resolvers += Classpaths.sbtPluginReleases
22

3+
// test coverage
4+
35
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.0.1")
46

57
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.0.0.BETA1")
68

7-
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.0")
9+
// release process
10+
11+
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.0")
12+
13+
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")
14+
15+
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "0.5.0")

0 commit comments

Comments
 (0)