Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 92 lines (68 sloc) 2.682 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
name := "jta"

liftVersion <<= liftVersion ?? "2.5-M3"

version <<= liftVersion apply { _ + "-1.1" }

organization := "net.liftmodules"
 
scalaVersion := "2.9.2"
 
crossScalaVersions := Seq("2.9.2", "2.9.1-1", "2.9.1")

resolvers += "CB Central Mirror" at "http://repo.cloudbees.com/content/groups/public"

resolvers += "Java.net Maven2 Repository" at "http://download.java.net/maven/2/"

libraryDependencies <++= liftVersion { v =>
  "net.liftweb" %% "lift-webkit" % v % "compile->default" ::
  "net.liftweb" %% "lift-util" % v % "compile->default" ::
  Nil
}

libraryDependencies <++= scalaVersion { sv =>
  "com.atomikos" % "atomikos-util" % "3.2.3" % "provided" ::
  "com.atomikos" % "transactions" % "3.2.3" % "provided" ::
  "com.atomikos" % "transactions-api" % "3.2.3" % "provided" ::
  "com.atomikos" % "transactions-jta" % "3.2.3" % "provided" ::
  "javax.persistence" % "persistence-api" % "1.0" % "provided" ::
  "javax.transaction" % "transaction-api" % "1.1" % "provided" ::
  "org.hibernate" % "hibernate-entitymanager" % "3.4.0.GA" ::
  "org.scala-libs" % "scalajpa_2.9.1" % "1.4" ::
  Nil
}

libraryDependencies <++= scalaVersion { sv =>
  (sv match {
      case "2.9.2" | "2.9.1" | "2.9.1-1" => "org.scala-tools.testing" % "specs_2.9.1" % "1.6.9" % "test"
      case _ => "org.scala-tools.testing" %% "specs" % "1.6.8" % "test"
      }) ::
   (sv match {
      case "2.9.2" => "org.scalacheck" % "scalacheck_2.9.1" % "1.9" % "test"
      case _ => "org.scalacheck" %% "scalacheck" % "1.9" % "test"
      }) ::
  Nil
}


publishTo <<= version { _.endsWith("SNAPSHOT") match {
  case true => Some("snapshots" at "https://oss.sonatype.org/content/repositories/snapshots")
  case false => Some("releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2")
  }
 }


// For local deployment:

credentials += Credentials( file("sonatype.credentials") )

// For the build server:

credentials += Credentials( file("/private/liftmodules/sonatype.credentials") )

publishMavenStyle := true

publishArtifact in Test := false

pomIncludeRepository := { _ => false }


pomExtra := (
<url>https://github.com/liftmodules/jta</url>
<licenses>
<license>
<name>Apache 2.0 License</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git@github.com:liftmodules/jta.git</url>
<connection>scm:git:git@github.com:liftmodules/jta.git</connection>
</scm>
<developers>
<developer>
<id>liftmodules</id>
<name>Lift Team</name>
<url>http://www.liftmodules.net</url>
</developer>
</developers>
 )
  
Something went wrong with that request. Please try again.