Skip to content

Commit

Permalink
Enable artifact publishing to sonatype.
Browse files Browse the repository at this point in the history
  • Loading branch information
zbsz committed Jul 23, 2015
1 parent f9395c0 commit fdf1169
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 26 deletions.
6 changes: 1 addition & 5 deletions README.md
Expand Up @@ -11,12 +11,8 @@ Robolectric 2.4 is supported by Robotest 0.7 (see releases).
For working sample, check example project included in Robotest sources.

```
resolvers += Seq(
"RoboTest releases" at "https://raw.github.com/zbsz/mvn-repo/master/releases/"
)
libraryDependencies ++= Seq(
"com.geteit" %% "robotest" % "0.11" % Test, // latest RoboTest version
"com.geteit" %% "robotest" % "0.12" % Test, // latest RoboTest version
"org.scalatest" %% "scalatest" % "2.2.5" % Test
)
Expand Down
12 changes: 0 additions & 12 deletions build.sbt
Expand Up @@ -8,17 +8,6 @@ scalaVersion := "2.11.7"

crossScalaVersions := Seq("2.10.5", "2.11.7")

resolvers ++= Seq(
Resolver.mavenLocal
)

publishTo := {
if (version.value.trim.endsWith("SNAPSHOT"))
Some(Resolver.file("snapshots", new File("../mvn-repo/snapshots" )) )
else
Some(Resolver.file("releases", new File("../mvn-repo/releases" )) )
}

libraryDependencies ++= Seq(
"org.robolectric" % "robolectric" % "3.0",
"org.robolectric" % "android-all" % "5.0.0_r2-robolectric-1",
Expand All @@ -30,4 +19,3 @@ libraryDependencies ++= Seq(
fork in Test := true

lazy val root = Project("robotest", file("."))

10 changes: 2 additions & 8 deletions example/build.sbt
Expand Up @@ -14,17 +14,11 @@ organization := "com.geteit"

version := "0.1"

scalaVersion := "2.11.6"

resolvers ++= Seq(
Resolver.mavenLocal,
"RoboTest releases" at "https://raw.github.com/zbsz/mvn-repo/master/releases/",
Resolver.sonatypeRepo("snapshots")
)
scalaVersion := "2.11.7"

libraryDependencies ++= Seq(
"com.android.support" % "appcompat-v7" % "22.1.1",
"com.geteit" %% "robotest" % "0.11" % Test,
"com.geteit" %% "robotest" % "0.12" % Test,
"org.scalatest" %% "scalatest" % "2.2.5" % Test
)

Expand Down
5 changes: 4 additions & 1 deletion project/plugins.sbt
@@ -1,2 +1,5 @@
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "0.5.0")

addSbtPlugin("com.hanhuy.sbt" %% "android-sdk-plugin" % "1.4.0")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")

addSbtPlugin("com.hanhuy.sbt" %% "android-sdk-plugin" % "1.4.6")
20 changes: 20 additions & 0 deletions sonatype.sbt
@@ -0,0 +1,20 @@
pomExtra := (
<url>https://github.com/zbsz/robotest</url>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<scm>
<connection>scm:git:github.com/zbsz/robotest</connection>
<developerConnection>scm:git:git@github.com:zbsz/robotest</developerConnection>
<url>github.com/zbsz/robotest</url>
</scm>
<developers>
<developer>
<id>zbsz</id>
<name>Zbigniew Szymanski</name>
<url>http://geteit.com</url>
</developer>
</developers>)

0 comments on commit fdf1169

Please sign in to comment.