Skip to content
Permalink
Browse files

adding an sbt build for publishing

  • Loading branch information...
channingwalton committed Jun 16, 2014
1 parent 3a44592 commit eca70a5810cf5fc823156238632ffed80ffdf11f
Showing with 68 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +65 −0 build.sbt
  3. +1 −0 project/plugins.sbt
@@ -0,0 +1,2 @@

target
@@ -0,0 +1,65 @@
organization := "com.flyobjectspace"

name := "FlyJava"

version := "1.0-SNAPSHOT"

javaSource in Compile := baseDirectory.value / "src"

javaSource in Test := baseDirectory.value / "test"

javacOptions ++= Seq("-source", "1.6")

libraryDependencies ++= Seq("junit" % "junit" % "4.11" % "test")

crossPaths := false

publishMavenStyle := true

publishArtifact in Test := false

pomIncludeRepository := { _ => false}

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")
}

pomExtra :=
<licenses>
<license>
<name>MIT License</name>
<url>http://www.opensource.org/licenses/mit-license/</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git@github.com:fly-object-space/fly-java.git</url>
<connection>scm:git:git@github.com:fly-object-space/fly-java.git</connection>
</scm>
<url>http://www.flyobjectspace.com</url>
<developers>
<developer>
<id>cjw</id>
<name>Channing Walton</name>
<email>channing [dot] walton [at] underscoreconsulting [dot] com</email>
<organization>Underscore Consulting Ltd</organization>
</developer>
<developer>
<id>nw</id>
<name>Nigel Warren</name>
<organization>Zink Digital Ltd</organization>
</developer>
</developers>
<mailingLists>
<mailingList>
<name>User and Developer Discussion List</name>
<archive>http://groups.google.com/group/flyobjectspace</archive>
<post>flyobjectspace@googlegroups.com</post>
<subscribe>flyobjectspace+subscribe@googlegroups.com</subscribe>
<unsubscribe>flyobjectspace+unsubscribe@googlegroups.com</unsubscribe>
</mailingList>
</mailingLists>
@@ -0,0 +1 @@
addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.8")

0 comments on commit eca70a5

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.