Permalink
Browse files

update to org.conbere namespace and add new build.sbt for publishing

  • Loading branch information...
1 parent 1fe5288 commit 2d46c9ac61ac374d2e3fc13baa74e360dd7bbcbe Anders Conbere committed Feb 21, 2013
Showing with 33 additions and 3 deletions.
  1. +1 −1 README.mkd
  2. +30 −0 build.sbt
  3. +1 −1 src/main/scala/Markov.scala
  4. +1 −1 src/test/scala/MarkovSuite.scala
View
@@ -6,7 +6,7 @@ Some expirements in markov chains
```scala
import scala.io.Source
-import com.conbere.markov._
+import org.conbere.markov._
object Markov extends App {
def main(args: Array[String]) = {
View
@@ -11,3 +11,33 @@ libraryDependencies += "org.scalatest" % "scalatest_2.10" % "1.9.1" % "test"
libraryDependencies += "junit" % "junit" % "4.10" % "test"
testOptions in Test += Tests.Argument("-oDF")
+
+publishMavenStyle := true
+
+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")
+ }
+}
+
+pomIncludeRepository := { _ => false }
+
+licenses := Seq("BSD-style" -> url("http://www.opensource.org/licenses/bsd-license.php"))
+
+homepage := Some(url("http://jsuereth.com/scala-arm"))
+
+pomExtra := (
+ <scm>
+ <url>git@github.com:aconbere/scala-markov.git</url>
+ <connection>scm:git:git@github.com:aconbere/scala-markov.git</connection>
+ </scm>
+ <developers>
+ <developer>
+ <id>aconbere</id>
+ <name>Anders Conbere</name>
+ <url>http://anders.conbere.org</url>
+ </developer>
+ </developers>)
@@ -1,4 +1,4 @@
-package com.conbere.markov
+package org.conbere.markov
import scala.util.Random
import scala.io.Source
@@ -5,7 +5,7 @@ import org.scalatest.junit.JUnitRunner
import org.junit.runner.RunWith
-import com.conbere.markov._
+import org.conbere.markov._
@RunWith(classOf[JUnitRunner])
class MarkovSuite extends FunSuite {

0 comments on commit 2d46c9a

Please sign in to comment.