Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Name now includes Lift Edition.

  • Loading branch information...
commit 8dd15c9bde78704198e0e8850c58ace1baed66ce 1 parent ab72873
@d6y d6y authored
Showing with 39 additions and 20 deletions.
  1. +19 −3 README.md
  2. +16 −12 build.sbt
  3. +4 −5 project/LiftModule.scala
View
22 README.md
@@ -1,11 +1,27 @@
Textile Lift Module
==================
-This module adds support for Textile markup format.
+Adds support for the Textile markup format to your Lift application.
----
+To include this module in your Lift project, update your `libraryDependencies` in `build.sbt` to include:
+
+*Lift 2.5.x* for Scala 2.9 and 2.10:
+
+ "net.liftmodules" %% "textile_2.5" % "1.3"
+
+*Lift 3.0.x* for Scala 2.10:
+
+ "net.liftmodules" %% "textile_3.0" % "1.3-SNAPSHOT"
+
+
+Documentation
+=============
+
+* [Rendering Textile Markup](http://cookbook.liftweb.net/#Textile) in the _Lift Cookbook_.
+
+* [Using the Textile module](http://www.assembla.com/spaces/liftweb/wiki/Textile) on the Lift wiki.
-See [Using the Textile module](http://www.assembla.com/spaces/liftweb/wiki/Textile) on the Lift wiki.
+* There are examples of using Textile in [Lift in Action](http://www.manning.com/perrett/).
**Note:** The module package changed from `net.liftweb.textile` to `net.liftmodules.textile` in May 2012. Please consider this when referencing documentation written before that date.
View
28 build.sbt
@@ -2,14 +2,18 @@ name := "textile"
organization := "net.liftmodules"
+version := "1.3-SNAPSHOT"
+
liftVersion <<= liftVersion ?? "2.5-SNAPSHOT"
-version <<= liftVersion apply { _ + "-1.3-SNAPSHOT" }
-
+liftEdition <<= liftVersion apply { _.substring(0,3) }
+
+name <<= (name, liftEdition) { (n, e) => n + "_" + e }
+
scalaVersion := "2.10.0"
-
+
scalacOptions ++= Seq("-unchecked", "-deprecation")
-
+
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"
@@ -17,15 +21,15 @@ resolvers += "CB Central Mirror" at "http://repo.cloudbees.com/content/groups/pu
resolvers += "Java.net Maven2 Repository" at "http://download.java.net/maven/2/"
libraryDependencies <++= liftVersion { v =>
- "net.liftweb" %% "lift-util" % v % "compile->default" ::
+ "net.liftweb" %% "lift-util" % v % "provided" ::
Nil
-}
+}
-libraryDependencies <++= scalaVersion { sv =>
- (sv match {
+libraryDependencies <++= scalaVersion { sv =>
+ (sv match {
case "2.9.2" | "2.9.1" | "2.9.1-1" => "org.specs2" %% "specs2" % "1.12.3" % "test"
case _ => "org.specs2" %% "specs2" % "1.13" % "test"
- }) ::
+ }) ::
Nil
}
@@ -33,7 +37,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:
@@ -70,6 +74,6 @@ pomExtra := (
<name>Lift Team</name>
<url>http://www.liftmodules.net</url>
</developer>
- </developers>
+ </developers>
)
-
+
View
9 project/LiftModule.scala
@@ -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("."))
+}
Please sign in to comment.
Something went wrong with that request. Please try again.