mirror of https://github.com/sbt/sbt.git
add information for publishing to sonatype
This commit is contained in:
parent
dc9d70200c
commit
2c2af36531
|
|
@ -14,7 +14,7 @@ How To Use
|
||||||
For sbt 0.11, add sbt-dependency-graph as a dependency in `project/plugins.sbt`:
|
For sbt 0.11, add sbt-dependency-graph as a dependency in `project/plugins.sbt`:
|
||||||
|
|
||||||
```scala
|
```scala
|
||||||
addSbtPlugin("net.virtualvoid" % "sbt-dependency-graph" % "0.5.1")
|
addSbtPlugin("net.virtualvoid" % "sbt-dependency-graph" % "0.5.2")
|
||||||
```
|
```
|
||||||
|
|
||||||
or, alternatively, in `project/plugins/project/build.scala`:
|
or, alternatively, in `project/plugins/project/build.scala`:
|
||||||
|
|
|
||||||
19
build.sbt
19
build.sbt
|
|
@ -1,21 +1,2 @@
|
||||||
seq(lsSettings :_*)
|
seq(lsSettings :_*)
|
||||||
|
|
||||||
sbtPlugin := true
|
|
||||||
|
|
||||||
version := "0.5.1"
|
|
||||||
|
|
||||||
name := "sbt-dependency-graph"
|
|
||||||
|
|
||||||
organization := "net.virtualvoid"
|
|
||||||
|
|
||||||
homepage := Some(url("http://github.com/jrudolph/sbt-dependency-graph"))
|
|
||||||
|
|
||||||
licenses in GlobalScope += "Apache License 2.0" -> url("https://github.com/jrudolph/sbt-dependency-graph/raw/master/LICENSE")
|
|
||||||
|
|
||||||
(LsKeys.tags in LsKeys.lsync) := Seq("dependency", "graph", "sbt-plugin", "sbt")
|
|
||||||
|
|
||||||
(LsKeys.docsUrl in LsKeys.lsync) <<= homepage
|
|
||||||
|
|
||||||
(description in LsKeys.lsync) :=
|
|
||||||
"An sbt plugin which allows to create a graphml file from the dependencies of the project."
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
sbtPlugin := true
|
||||||
|
|
||||||
|
name := "sbt-dependency-graph"
|
||||||
|
|
||||||
|
organization := "net.virtualvoid"
|
||||||
|
|
||||||
|
version := "0.5.2"
|
||||||
|
|
||||||
|
homepage := Some(url("http://github.com/jrudolph/sbt-dependency-graph"))
|
||||||
|
|
||||||
|
licenses in GlobalScope += "Apache License 2.0" -> url("https://github.com/jrudolph/sbt-dependency-graph/raw/master/LICENSE")
|
||||||
|
|
||||||
|
(LsKeys.tags in LsKeys.lsync) := Seq("dependency", "graph", "sbt-plugin", "sbt")
|
||||||
|
|
||||||
|
(LsKeys.docsUrl in LsKeys.lsync) <<= homepage
|
||||||
|
|
||||||
|
(description in LsKeys.lsync) :=
|
||||||
|
"An sbt plugin which allows to create a graphml file from the dependencies of the project."
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
import java.net.URL
|
||||||
|
|
||||||
|
object Helpers {
|
||||||
|
def generatePomExtra(scmUrl: String, scmConnection: String,
|
||||||
|
developerId: String, developerName: String): xml.NodeSeq =
|
||||||
|
<scm>
|
||||||
|
<url>{ scmUrl }</url>
|
||||||
|
<connection>{ scmConnection }</connection>
|
||||||
|
</scm>
|
||||||
|
<developers>
|
||||||
|
<developer>
|
||||||
|
<id>{ developerId }</id>
|
||||||
|
<name>{ developerName }</name>
|
||||||
|
</developer>
|
||||||
|
</developers>
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
resolvers += Resolver.url("scalasbt", new URL("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)
|
||||||
|
|
||||||
|
addSbtPlugin("com.jsuereth" % "xsbt-gpg-plugin" % "0.5")
|
||||||
|
|
@ -1,7 +1,3 @@
|
||||||
|
resolvers += "less is" at "http://repo.lessis.me"
|
||||||
|
|
||||||
resolvers ++= Seq(
|
|
||||||
"less is" at "http://repo.lessis.me",
|
|
||||||
"coda" at "http://repo.codahale.com")
|
|
||||||
|
|
||||||
addSbtPlugin("me.lessis" % "ls-sbt" % "0.1.0")
|
addSbtPlugin("me.lessis" % "ls-sbt" % "0.1.0")
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
publishTo <<= version { v: String =>
|
||||||
|
val nexus = "https://oss.sonatype.org/"
|
||||||
|
if (v.trim.endsWith("SNAPSHOT")) Some("snapshots" at nexus + "content/repositories/snapshots")
|
||||||
|
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
|
||||||
|
}
|
||||||
|
|
||||||
|
publishMavenStyle := true
|
||||||
|
|
||||||
|
publishArtifact in Test := false
|
||||||
|
|
||||||
|
pomIncludeRepository := { _ => false }
|
||||||
|
|
||||||
|
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
|
||||||
|
|
||||||
|
pomExtra :=
|
||||||
|
Helpers.generatePomExtra("git@github.com:jrudolph/sbt-dependency-graph.git",
|
||||||
|
"scm:git:git@github.com:jrudolph/sbt-dependency-graph.git",
|
||||||
|
"jrudolph", "Johannes Rudolph")
|
||||||
|
|
||||||
|
useGpg := true
|
||||||
Loading…
Reference in New Issue