Permalink
Browse files

Name now includes Lift Edition.

  • Loading branch information...
d6y committed Apr 7, 2013
1 parent 0240018 commit 78bb53712bcf08c12dcd04410782065d1e49ae40
Showing with 29 additions and 24 deletions.
  1. +8 −5 README.md
  2. +17 −14 build.sbt
  3. +4 −5 project/LiftModule.scala
View
@@ -3,17 +3,20 @@ Imaging Lift Module
This module provides image-related utilities.
----
+To include this module in your Lift project, update your `libraryDependencies` in `build.sbt` to include:
-**Note:** The module package changed from `net.liftweb.imaging` to `net.liftmodules.imaging` in May 2012. Please consider this when referencing documentation written before that date.
+*Lift 2.5.x* for Scala 2.9 and 2.10:
+
+ "net.liftmodules" %% "imaging_2.5" % "1.2"
+
+*Lift 3.0.x* for Scala 2.10:
+ "net.liftmodules" %% "imaging_3.0" % "1.2-SNAPSHOT"
----
+**Note:** The module package changed from `net.liftweb.imaging` to `net.liftmodules.imaging` in May 2012. Please consider this when referencing documentation written before that date.
Notes for module developers
===========================
* The [Jenkins build](https://liftmodules.ci.cloudbees.com/job/imaging/) is triggered on a push to master.
-
-
View
@@ -1,32 +1,35 @@
name := "imaging"
+organization := "net.liftmodules"
+
+version := "1.2-SNAPSHOT"
+
liftVersion <<= liftVersion ?? "2.5-SNAPSHOT"
-version <<= liftVersion apply { _ + "-1.2-SNAPSHOT" }
+liftEdition <<= liftVersion apply { _.substring(0,3) }
+
+name <<= (name, liftEdition) { (n, e) => n + "_" + e }
-organization := "net.liftmodules"
-
scalaVersion := "2.10.0"
-
+
crossScalaVersions := Seq("2.10.0", "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" ::
+ "net.liftweb" %% "lift-webkit" % v % "provided" ::
+ "net.liftweb" %% "lift-util" % v % "provided" ::
Nil
-}
-
+}
-libraryDependencies <++= scalaVersion { sv =>
+libraryDependencies <++= scalaVersion { sv =>
"org.apache.sanselan" % "sanselan" % "0.97-incubator" ::
- (sv match {
+ (sv match {
case "2.9.2" | "2.9.1" | "2.9.1-1" => "org.specs2" %% "specs2" % "1.12.3" % "test"
case "2.10.0" => "org.specs2" %% "specs2" % "1.13" % "test"
- }) ::
+ }) ::
Nil
}
@@ -35,7 +38,7 @@ 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:
@@ -72,6 +75,6 @@ pomExtra := (
<name>Lift Team</name>
<url>http://www.liftmodules.net</url>
</developer>
- </developers>
+ </developers>
)
-
+
View
@@ -3,11 +3,10 @@ import sbt.Keys._
object LiftModuleBuild extends Build {
-val liftVersion = SettingKey[String]("liftVersion", "Version number of the Lift Web Framework")
-
-val project = Project("LiftModule", file("."))
-
-}
+ val liftVersion = SettingKey[String]("liftVersion", "Full version number of the Lift Web Framework")
+ val liftEdition = SettingKey[String]("liftEdition", "Lift Edition (short version number to append to artifact name)")
+ val project = Project("LiftModule", file("."))
+}

0 comments on commit 78bb537

Please sign in to comment.