diff --git a/build.sbt b/build.sbt
index 4ab904b..327a350 100644
--- a/build.sbt
+++ b/build.sbt
@@ -1,4 +1,4 @@
-val Organization = "gitbucket"
+val Organization = "io.github.gitbucket"
val Name = "gitbucket"
val GitBucketVersion = "4.3.0"
val ScalatraVersion = "2.4.1"
@@ -170,3 +170,56 @@
}
addArtifact(Keys.artifact in (Compile, executableKey), executableKey)
*/
+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
+pomIncludeRepository := { _ => false }
+artifact in Keys.`package` := Artifact(moduleName.value)
+pomExtra := (
+ https://github.com/gitbucket/gitbucket
+
+
+ The Apache Software License, Version 2.0
+ http://www.apache.org/licenses/LICENSE-2.0.txt
+
+
+
+ https://github.com/gitbucket/gitbucket
+ scm:git:https://github.com/gitbucket/gitbucket.git
+
+
+
+ takezoe
+ Naoki Takezoe
+ https://github.com/takezoe
+
+
+ shimamoto
+ Takako Shimamoto
+ https://github.com/shimamoto
+
+
+ tanacasino
+ Tomofumi Tanaka
+ https://github.com/tanacasino
+
+
+ mrkm4ntr
+ Shintaro Murakami
+ https://github.com/mrkm4ntr
+
+
+ nazoking
+ nazoking
+ https://github.com/nazoking
+
+
+ McFoggy
+ Matthieu Brouillard
+ https://github.com/McFoggy
+
+
+)
diff --git a/project/plugins.sbt b/project/plugins.sbt
index fe0d1bd..181fe48 100644
--- a/project/plugins.sbt
+++ b/project/plugins.sbt
@@ -1,6 +1,7 @@
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature")
-addSbtPlugin("com.typesafe.sbt" % "sbt-twirl" % "1.0.4")
-addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.12.0")
-addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "2.1.0")
+addSbtPlugin("com.typesafe.sbt" % "sbt-twirl" % "1.0.4")
+addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.12.0")
+addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "2.1.0")
addSbtPlugin("fi.gekkio.sbtplugins" % "sbt-jrebel-plugin" % "0.10.0")
+addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.8.3")