On Tue, Nov 23, 2010 at 7:42 AM, Adam Murdoch <[email protected]> wrote:
>
> On 22/11/2010, at 11:59 PM, Jeppe Nejsum Madsen wrote:
>
> Hi,
>
> Have a strange issue with the eclipse task:
>
> With no existing .classpath, the task generates the following entry:
>
> <classpathentry
> sourcepath="GRADLE_CACHE/org.scala-lang/scala-library/sources/scala-library-2.8.0-sources.jar"
> kind="var"
> path="GRADLE_CACHE/org.scala-lang/scala-library/jars/scala-library-2.8.0.jar"
> exported="true"/>
>
> But I've set up the scalaTools configuration to use Scala 2.8.1 and
> "gradle dep" doesn't show any trace of scala-library-2.8.0.jar.
>
> It looks like a transitive dependency
>
> It does, though conflict resolution should evict 2.8.0 in favour of 2.8.1.
> So, something is going wrong here. Is it possible for you to send in your
> dependencies { } section? Or a subset of it which demonstrates the problem?

Here's a build.gradle that shows the problem (on rc2):

apply {
    plugin 'scala'
    plugin 'war'
    plugin 'jetty'
    plugin 'eclipse'
}

scalaVersion = '2.8.1'
liftVersion = '2.2-M1'
liftScalaVersion = '2.8.0'
cxfVersion = '2.2.3'
specsVersion = scalaVersion.startsWith("2.8") ? "1.6.6" : "1.6.1"

jettyRun.contextPath = "/"
compileScala.scalaCompileOptions.optimize = true // Need this for Scala 2.8.0

// Configure for use with Scala 2.8 Plugin
eclipseClasspath.containers += ["org.scala-ide.sdt.launching.SCALA_CONTAINER"]
eclipseClasspath.minusConfigurations = [configurations.scalaTools]

configurations {
  compile.exclude module: "commons-logging"
}

repositories {
    mavenCentral()
    mavenRepo name:'scala-releases',
urls:'http://scala-tools.org/repo-releases/'
}

dependencies {
    scalaTools "org.scala-lang:scala-compiler:$scalaVersion",
        "org.scala-lang:scala-library:$scalaVersion"

    compile "org.scala-lang:scala-library:$scalaVersion",
        "net.liftweb:lift-mapper_$liftScalaVersion:$liftVersion",
        "net.liftweb:lift-webkit_$liftScalaVersion:$liftVersion",
        "net.liftweb:lift-util_$liftScalaVersion:$liftVersion",
        "net.liftweb:lift-actor_$liftScalaVersion:$liftVersion",
        "net.liftweb:lift-common_$liftScalaVersion:$liftVersion",
        "net.liftweb:lift-json_$liftScalaVersion:$liftVersion",
        "ch.qos.logback:logback-classic:0.9.26",
        "ch.qos.logback:logback-core:0.9.26",
        "com.h2database:h2:1.2.138"

    testCompile "junit:junit:4.5",
        "org.scala-tools.testing:specs_$scalaVersion:$specsVersion",
        "org.scala-lang:scala-compiler:$scalaVersion",
        'org.mortbay.jetty:jetty:6.1.25',
        'org.mortbay.jetty:jetty-util:6.1.25',
        'org.mortbay.jetty:jetty-management:6.1.25',
        "org.scala-lang:scala-compiler:$scalaVersion"

        
    providedCompile 'javax.servlet:servlet-api:2.5'
}

/Jeppe

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

    http://xircles.codehaus.org/manage_email


Reply via email to