I’m a total novice to Gradle so I hope I can explain this properly.
I work in Eclipse and I build the Java projects through an “External Tool” (menu “Run” / “External tools”) configured to run “gradlew.bat”.
My problem is that whenever I run the build for my Java project, this project ends up having on its build path a certain JAR which I don’t want (“velocity-1.4.jar”). If I manually remove this JAR from the build path, it comes back the next time I run the Gradle build. However the “build.gradle” file I use for building does not mention anything related to Velocity, so I don’t know what to change in order not to fetch that JAR. The file lists several dependencies though, for ex.:
compile (group: 'hsqldb', name: 'hsqldb', version: '18.104.22.168', transitive: false) compile (group: 'org.eclipse.jetty', name: 'jetty-distribution', version: '8.1.7.v20120910') compile (group: 'commons-lang', name: 'commons-lang', version: '2.6') compile (group: 'org.apache.httpcomponents',name: 'httpclient', version: '4.3.1')
and I imagine that my unwanted JAR comes as a dependency of one of these dependencies. I’m wondering what’s a good way to find out which dependency is fetching the unwanted JAR.