Skip to content
This repository was archived by the owner on Mar 11, 2019. It is now read-only.

Commit 9603790

Browse files
committed
chore(sonatype): prepare the powerapi-core project for publication
Write the needed configuration for publishing the powerapi-core artifact.
1 parent b764059 commit 9603790

File tree

4 files changed

+49
-1
lines changed

4 files changed

+49
-1
lines changed

powerapi-core/build.sbt

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1+
import SonatypeKeys._
2+
3+
sonatypeSettings
4+
15
name := "powerapi-core"
26

7+
organization := "org.powerapi"
8+
39
// App
410
libraryDependencies ++= Seq(
511
"com.typesafe.akka" %% "akka-actor" % "2.3.6",
@@ -18,6 +24,47 @@ libraryDependencies ++= Seq(
1824
"org.scalatest" %% "scalatest" % "2.2.2" % "test"
1925
)
2026

27+
startYear := Some(2014)
28+
29+
licenses := Seq("AGPL-3.0" -> url("http://www.gnu.org/licenses/agpl-3.0.txt"))
30+
31+
pomExtra := {
32+
<url>http://www.powerapi.org/</url>
33+
<scm>
34+
<url>github.com/Spirals-Team/powerapi</url>
35+
<connection>scm:git:git@github.com:Spirals-Team/powerapi.git</connection>
36+
<developerConnection>scm:git:git@github.com:Spirals-Team/powerapi.git</developerConnection>
37+
</scm>
38+
<developers>
39+
<developer>
40+
<id>mcolmant</id>
41+
<name>Maxime Colmant</name>
42+
<url>http://researchers.lille.inria.fr/colmant/</url>
43+
</developer>
44+
<developer>
45+
<id>rouvoy</id>
46+
<name>Romain Rouvoy</name>
47+
<url>http://www.lifl.fr/~rouvoy/</url>
48+
</developer>
49+
<developer>
50+
<id>lhuertas</id>
51+
<name>Loïc Huertas</name>
52+
</developer>
53+
</developers>
54+
}
55+
56+
publishMavenStyle := true
57+
58+
publishArtifact in Test := false
59+
60+
publishTo := {
61+
val nexus = "https://oss.sonatype.org/"
62+
if (isSnapshot.value)
63+
Some("snapshots" at nexus + "content/repositories/snapshots")
64+
else
65+
Some("releases" at nexus + "service/local/staging/deploy/maven2")
66+
}
67+
2168
val downloadBluecoveLibs = TaskKey[Seq[File]]("download-bluecove")
2269

2370
downloadBluecoveLibs := {

powerapi-sampling/src/test/scala/org/powerapi/sampling/SamplingConfigurationSuite.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import akka.actor.ActorSystem
2626
import akka.testkit.TestKit
2727
import akka.util.Timeout
2828
import org.powerapi.UnitTest
29-
import scala.collection.BitSet
3029
import scala.concurrent.duration.DurationInt
3130

3231
class SamplingConfigurationSuite(system: ActorSystem) extends UnitTest(system) {

project/gpg.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")

project/sonatype.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "0.2.2")

0 commit comments

Comments
 (0)