In my current project, I am wrapping a complex project built with Ant. We have made some changes to that project’s sources so we need to build these modified sources, collect the artifacts and then add those artifacts to the classpath of some of our own modules.
My current approach is to “emulate” some of the Java plugin tasks such as ‘build’, ‘assemble’, ‘compileJava’ with custom tasks that call out to the ant build. However, this is not entirely satisfactory as it doesn’t, for example, honor any up-to-date checks.
At some point, we may port the dependent project’s build itself to Gradle which would presumably simplify things greatly, but for now, we haven’t done it.
Is there some intermediate step that might be a good middle ground?