How add file dependencies to a configuration without first adding them to a repository?


(dusiabh) #1

Base on http://www.gradle.org/docs/current/userguide/dependency_management.html#sub:file_dependencies I can directly add a set of files to a configuration, without first adding them to a repository. My build.gradle includes:

dependencies {

compile fileTree(dir: ‘dependencie’, include: ‘*.jar’) }

*dependencie - a directory were all required jar exist.

error: 11:04:28.803 [ERROR] [system.err] /i/…/…/MyReport.java:61: package comp.jdbc.driver does not exist 11:04:28.804 [ERROR] [system.err] import comp.jdbc.driver.MyTypes; 11:04:28.804 [ERROR] [system.err]

^

What is going wrong?

Thank you for you help.


(Peter Niederwieser) #2

Looks like you misspelled the directory name.