[GRADLE-2298] File dependencies are not working Created: 14/May/12  Updated: 18/Apr/13  Resolved: 18/Apr/13

Status: Resolved
Project: Gradle
Affects Version/s: 1.0-rc-3
Fix Version/s: None

Type: Bug
Reporter: Daniel Draganov Assignee: Unassigned
Resolution: Not A Bug Votes: 0



I have set runtime files('C:/depend/confluence-cli-2.5.0.jar', 'C:/depend/cli-2.5.0.jar') and runtime fileTree(dir: 'C:/depend', include: '*.jar'), but both result in the following exception:

java.lang.NoClassDefFoundError: org/swift/confluence/cli/ConfluenceClient
Caused by: java.lang.ClassNotFoundException: org.swift.confluence.cli.ConfluenceClient
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

When org.swift.confluence.cli:confluence-cli:2.5.0 is added the artifact is downloaded and the problem does not occur.
I think that by some reason the File dependencies functionality is not working.
If you need any additional information please let me know.


Comment by Adam Murdoch [ 19/Aug/12 ]

Where is this exception happening? Do you have more of the stack trace?

Comment by Daniel Draganov [ 20/Aug/12 ]

This one is a user error, therefore I think you can mark it as not a real bug.
It happened before some time so I don't remember what was causing the error.

Best Regards,

Generated at Wed Jun 30 12:18:09 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.