aboutsummaryrefslogtreecommitdiff
path: root/stage2/plugins/GithubPom.scala
diff options
context:
space:
mode:
Diffstat (limited to 'stage2/plugins/GithubPom.scala')
-rw-r--r--stage2/plugins/GithubPom.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/stage2/plugins/GithubPom.scala b/stage2/plugins/GithubPom.scala
new file mode 100644
index 0000000..8b11385
--- /dev/null
+++ b/stage2/plugins/GithubPom.scala
@@ -0,0 +1,11 @@
+package cbt
+import java.net.URL
+trait GithubPom extends Publish{
+ def user: String
+ def githubProject = name
+ def githubUser = user
+ final def githubUserProject = githubUser ++ "/" ++ githubProject
+ override def url = new URL(s"http://github.com/$githubUserProject")
+ override def scmUrl = s"git@github.com:$githubUserProject.git"
+ override def scmConnection = s"scm:git:$scmUrl"
+}