Hello, would you be able to provide me some guidance / ideally example project code how one can programmatically via Gradle’s “API” (?) get a project’s classpath? This is NOT from within a Gradle plugin, but in “standalone” - so the ideal reply would be an example project, with the necessary Gradle dependencies, with something like a main() which as input takes a path to a directory with a regular Gradle project in it (as in with a build.gradle et al), and which as output prints the local paths of the project’s output directory where the *.class are as well as to the JARs of the compile.dependencies - on the fly resolved and downloaded its dependencies from that project’s repositories, etc. All of this “embeddable”, so pure Java - without some exec of some gradlew kind of approach - you know what I mean.
The goal of this would be that I’d like my https://github.com/vorburger/hotea library to have native Gradle support. (So you would point hotea at a directory, and it would return a ClassLoader - with all dependencies loaded fetched.)
If Gradle cannot be used “embedded” like this, or if this is a Stupid Idea for some reason, please enlighten me, and perhaps propose an alternative… I could probably run some gradle task and parse it’s CLI output, but that seems a bit… stupid.
Thank you!