Lift 2.1 snapshots now builds on Scala 2.8.0-final!
With the upcoming Lift 2.1 slated to support both Scala 2.7.x and 2.8.x
we are making some adjustments in the way we identify the distributable
archetypes and jars.
The Lift modules would have the artifactId suffixed with
"_${scala.version}", where ${scala.version} resolves to the actual Scala
version on which they are built.
This means the jar files would be of the form:
${artifact}_${scala.version}-2.1-SNAPSHOT.jar
Taking lift-mapper as an example,
The jar would be of the form:
lift-mapper_2.7.7-2.1-SNAPSHOT.jar (Scala 2.7.7)
lift-mapper_2.8.0-2.1-SNAPSHOT.jar (Scala 2.8.0)
For a Maven based project, dependency section would be:
<dependency>
<groupId>net.liftweb</groupId>
<artifactId>lift-mapper_${scala.version}</artifactId>
<version>2.1-SNAPSHOT</version>
</dependency>
For an SBT based project, the declaration would be:
val dispatch = "net.liftweb" %% "lift-mapper" % "2.1-SNAPSHOT"
(take note of the cross-build friendliness above)
Please feel encouraged to give Lift 2.1-SNAPSHOT versions for 2.8.0 (or
2.7.7 if you are conservative :)) a try and let us know how it goes.
For those interested in building from the source, take note of the
appropriate source branches in GitHub.
Scala 2.7.7 build: http://github.com/lift/lift/tree/2.x-2.7_devel
Scala 2.8.0 build: http://github.com/lift/lift/tree/2.x-2.8_devel
Cheers,
Indrajit
--
twitter.com/indrajitr
For example, Akka is already cross building and check their structure:
http://scalablesolutions.se/akka/repository/se/scalablesolutions/akka/
Cheers, Tim
> --
> You received this message because you are subscribed to the Google Groups "Lift" group.
> To post to this group, send email to lif...@googlegroups.com.
> To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
>
>
The artifactId is wrong. You'll need to make it "lift-mapper_SCALA_VERSION"
Cheers, Tim
The artifactId is wrong. You'll need to make it "lift-mapper_SCALA_VERSION"
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
#! /bin/shmvn archetype:generate -U \-DarchetypeGroupId=net.liftweb \
-DarchetypeArtifactId=lift-archetype-basic_2.8.0 \-DarchetypeVersion=2.1-SNAPSHOT \
-DarchetypeRepository=http://scala-tools.org/repo-snapshots \-DremoteRepositories=http://scala-tools.org/repo-releases \-DgroupId=$1 -DartifactId=$2
-Ross
"net.liftweb" %% "lift-mapper" % liftVersion % "compile->default"
can be simplified as:
"net.liftweb" %% "lift-mapper" % liftVersion
or can be alternately represented as:
"net.liftweb" % ("lift-mapper_" + crossScalaVersionString) % liftVersion
or can be 'pinned' to a version as:
"net.liftweb" % "lift-mapper_2.8.0") % liftVersion
Pick your poison :)
Cheers, Indrajit
--
twitter.com/indrajitr
Chaba wrote:
> Meredith,
>
> Did you try the one on http://www.assembla.com/wiki/show/liftweb/Using_Maven
> page?
Yes, this should work. Thank you very much Chaba for updating the wiki.
- Indrajit