Skip to content
This repository was archived by the owner on Sep 8, 2022. It is now read-only.

Commit ac2c4da

Browse files
committed
Publish settings for sonatype
1 parent b08c6ea commit ac2c4da

File tree

2 files changed

+48
-1
lines changed

2 files changed

+48
-1
lines changed

build.sbt

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,49 @@ resourceGenerators in Compile <+= Def.task {
3737

3838
mappings in (Compile, packageBin) += {
3939
(baseDirectory.value / "partest.properties") -> "partest.properties"
40-
}
40+
}
41+
42+
publishTo := {
43+
val nexus = "https://oss.sonatype.org/"
44+
if (version.value.trim.endsWith("SNAPSHOT"))
45+
Some("snapshots" at nexus + "content/repositories/snapshots")
46+
else
47+
Some("releases" at nexus + "service/local/staging/deploy/maven2")
48+
}
49+
50+
publishMavenStyle := true
51+
52+
publishArtifact in Test := false
53+
54+
pomIncludeRepository := { _ => false }
55+
56+
pomExtra := (
57+
<url>http://www.scala-lang.org/</url>
58+
<inceptionYear>2002</inceptionYear>
59+
<licenses>
60+
<license>
61+
<name>BSD-like</name>
62+
<url>http://www.scala-lang.org/downloads/license.html
63+
</url>
64+
<distribution>repo</distribution>
65+
</license>
66+
</licenses>
67+
<scm>
68+
<connection>scm:git:git://github.com/scala/scala-partest.git</connection>
69+
<url>https://github.com/scala/scala-partest</url>
70+
</scm>
71+
<issueManagement>
72+
<system>JIRA</system>
73+
<url>https://issues.scala-lang.org/</url>
74+
</issueManagement>
75+
<developers>
76+
<developer>
77+
<id>lamp</id>
78+
<name>EPFL LAMP</name>
79+
</developer>
80+
<developer>
81+
<id>Typesafe</id>
82+
<name>Typesafe, Inc.</name>
83+
</developer>
84+
</developers>
85+
)

project/plugins.sbt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ resolvers += Classpaths.typesafeResolver
33
// addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.1.5")
44

55
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.2.0")
6+
7+
addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.8")

0 commit comments

Comments
 (0)