Hey,

I've created a jira issue for a compilation error I get with transitive 
dependencies:

http://jira.codehaus.org/browse/GRADLE-900

I've attached a project which reproduces the problem. I'm using gradle 0.9 
preview 1 but had to choose 0.8 in jira since 0.9 preview 1 is not in the list 
of gradle releases.

'gradle eclipse' works just fine with this transitive dependency but 'gradle 
clean build' fails (see issue details):

compile ("org.mortbay.jetty:jetty:6.1.22") { transitive = true }

Error:
====

C:\dev\gradle-problem>gradle clean build
:clean UP-TO-DATE
:compileJavaC:\dev\gradle-problem\src\main\java\JettyServer.java:9: cannot acces
s org.mortbay.component.AbstractLifeCycle
file org\mortbay\component\AbstractLifeCycle.class not found
Server jetty = new Server(8888);
^
C:\dev\gradle-problem\src\main\java\JettyServer.java:13: cannot find symbol
symbol : method start()
location: class org.mortbay.jetty.Server
jetty.start();
^
2 errors
:compileJava
FAILURE: Build failed with an exception.
        * Where:
Build file 'C:\dev\gradle-problem\build.gradle'
        * What went wrong:
Execution failed for task ':compileJava'.
Cause: Compile failed; see the compiler error output for details.
        * Try:
Run with -s or -d option to get more details. Run with -S option to get the full
(very verbose) stacktrace.
BUILD FAILED
Total time: 6.313 secs

==================

Compilation works when I declare non-transitive dependencies:

compile "org.mortbay.jetty:jetty:6.1.22"
compile "org.mortbay.jetty:jetty-util:6.1.22"
compile "org.mortbay.jetty:servlet-api:2.5-20081211"


Steven


      

Reply via email to