Add plugins for sonatype

This commit is contained in:
Max Lv
2017-01-23 18:18:28 +08:00
parent d8775d4420
commit e634083820
3 changed files with 29 additions and 2 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
enablePlugins(AndroidLib)
enablePlugins(AndroidLib, Sonatype)
android.useSupportVectors
name := "plugin"
version := "0.0.1"
publishTo := Some(Resolver.file("file", new File(Path.userHome.absolutePath + "/.m2/repository")))
// publishTo := Some(Resolver.file("file", new File(Path.userHome.absolutePath + "/.m2/repository")))
+4
View File
@@ -3,3 +3,7 @@ addSbtPlugin("org.scala-android" % "sbt-android" % "1.7.3")
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.1.10")
addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.8.2")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "1.1")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0") // fot sbt-0.13.5 or higher
+23
View File
@@ -0,0 +1,23 @@
sonatypeProfileName := "com.github.shadowsocks"
pomExtra in Global := {
<url>https://github.com/shadowsocks/shadowsocks-android</url>
<licenses>
<license>
<name>GPLv3</name>
<url>https://www.gnu.org/licenses/gpl-3.0.html</url>
</license>
</licenses>
<scm>
<connection>scm:git:git://github.com/shadowsocks/shadowsocks-android.git</connection>
<developerConnection>scm:git:git@github.com:shadowsocks/shadowsocks-android.git</developerConnection>
<url>github.com/shadowsocks/shadowsocks-android</url>
</scm>
<developers>
<developer>
<id>madeye</id>
<name>Max Lv</name>
<url>https://github.com/madeye/</url>
</developer>
</developers>
}