i want to build a gradle project without any existing file directory like IDE’s do when you create a new gradle project.
Is there a gradle class providing this feature and that lets me configure the build.gradle or init.gradle inside of java code?
I’ve tried it with the tooling api and looked into the sources of gradle to manually modify the init task but didn’t find a way to create the objects gradle uses internally.
Do i have to create the basic files with a standard FileWriter, parse all configurations i wanted and invoke the init task with the tooling api? Couldn’t find the sources of the IDE’s and how they manage the project creation.