Get the org.gradle.api.DefaultProject object of an existing Gradle Project?

188 Views Asked by At

Question

How do I interact with Gradle Projects programmatically?

Context

I need to retrieve the Build Information provided in:

org.gradle.api.DefaultProject. 

But I see no way of getting the Project/SourceSets/Configuration container objects through java.

All the documentation I see describes how to achieve this using groovy DSL.

Thanks

0

There are 0 best solutions below