I’m working on a project, where I translate a bunch of old Ant files to Gradle.
One problem is that the old Ant scripts assumes that jar files being used in a project is simply kept in a jar directory in the project.
Not any more though, since I try to use dependency management.
This gives a problem with some of the other projects, since their Ant scripts copy files from projects they depend on, in order to create jars.
My question is therefore:
How do I get a list of files for a given project, so that I can just copy files it depends on, but without declaring the same dependencies again?
In other words…
ProjectA (Gradle build) depends on someJar, version m.n
ProjectB (Gradle script calling ant.importBuild) depends on ProjectA (used to copy all jar files from ProjectA/jars)
I can of course declare ProjectB to depend on ProjectA using settings.gradle, but how do I get the jar files it depends on?
Help is much appreciated here. Thank you in advance!