Gradle doesn't not put some external jar into the lib folder


Gents, I have a strange issue with Gradle. I am compiling and building my project and it works ok EXCEPT FOR one jar: commons-logging:commons-logging:1.1

This one is not supplied into the lib folder of my war. I dont understand why. I tried to define it with the two ways:


compile(libraries.commons_logging) Neither of them works. I cant figure out why this happens. All other jars are ok.

Where I went wrong?

Without more information or a way to reproduce the problem, it’s hard to give an advice. One thing I’d try is to spell out the dependency rather than referencing a variable: compile(“commons-logging:commons-logging:1.1”). You can also turn on info logging with --info and check whether commons-logging ever gets resolved.