On Jul 21, 2009, at 10:47 PM, Jeppe Nejsum Madsen wrote:

On Mon, Jul 20, 2009 at 10:09 AM, Hans Dockter<[email protected]> wrote:

The above repository handler know about the Maven notion of SNAPSHOT and will _always_ look for the newest snapshot. If they don't that would be a
bug and we would like to ask you to file a Jira.

There are other ways to get the latest revision of a specific dependency.

dependencies {
  compile "junit:junit:4.+"
}

To learn more about version ranges have a look at the ivy documentation:

http://ant.apache.org/ivy/history/2.1.0-rc1/ivyfile/dependency.html

Does the above solve your problems?

It was a problem with repo that wasn't being updated. Sorry for the confusion.

But now I ran into another problem (Note I'm still on 0.5.2 since I
need the Scala plugin. Haven't had time to port this yet :-(

If you need any help on that, just let us know. It would be cool to have a plugin ecosystem where non core plugins could be published. Matthias Pfau just made a proposal for this. I hope we get something running soon.


This build file used to work, but now it breaks finding SNAPSHOT jars:

I have this in my build.
   addMavenStyleRepo('scala-releases', 'http://scala-tools.org/repo-releases/')
   addMavenStyleRepo('scala-snapshots',
'http://scala-tools.org/repo-snapshots/')
   scalaTools "org.scala-lang:scala-compiler:$scalaVersion",
"org.scala-lang:scala-library:$scalaVersion"
   compile "org.scala-lang:scala-library:$scalaVersion",
        "net.liftweb:lift-webkit:$liftVersion",
        "net.liftweb:lift-mapper:$liftVersion",
        "net.liftweb:lift-util:$liftVersion",
        "net.liftweb:lift-widgets:$liftVersion",
        "postgresql:postgresql:$postgresDriverVersion",
       "org.apache.poi:poi:3.5-beta6",
       "org.apache.poi:poi-ooxml:3.5-beta6"

But compilation fails with

        io problem while parsing ivy file:
http://scala-tools.org/repo-snapshots/net/liftweb/lift/1.1-SNAPSHOT/lift-1.1-SNAPSHOT.pom :
Resetting to invalid mark

        io problem while parsing ivy file:
http://scala-tools.org/repo-snapshots/net/liftweb/lift-webkit/1.1-SNAPSHOT/lift-webkit-1.1-SNAPSHOT.pom :
Impossible to load parent for
file:/Users/jeppe/.gradle/cache/net.liftweb/lift-webkit/ivy-1.1- SNAPSHOT.xml.original.
Parent=net.liftweb#lift;1.1-SNAPSHOT

                module not found: net.liftweb#lift-webkit;1.1-SNAPSHOT

        ==== clientModule: tried

And it fails to resolve all the net.liftweb libs. The repo should be
ok, since I can build with maven.

I've tried deleting .gradle, ~/.gradle, but to no avail

Any hints?

This might be a Ivy/Maven incompatibility. You could try to replace the ivy version in the GRADLE_HOME_0.5.2 libs directory. The current gradle ships with ivy-2.1-rc2. I'm not completely sure if Gradle 0.5.2 is compatible with this new ivy version. If not, you could use Gradle 0.7 just with your dependency section, to see if it works there.

- Hans

--
Hans Dockter
Gradle Project Manager
http://www.gradle.org


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to