I am building a Java application which analyzes various other Java projects using Maven, Gradle and Ant. One of my tasks involves extracting dependencies of the project and storing them in a file.
For Maven, I am using the copy-dependencies task to achieve this. I am not too sure on how to achieve this using the toolingApi.
Is there anyway I can run a custom gradle task programmatically from my Java application on a target project?
Thank you for your reply. That link certainly helps . Thank you!.
But to achieve my goal here, I need to create a gradle task programatically and run that task in BuildLauncher. Please let me know if that is possible.
The task I am using is . Right now Its defined in build.gradle