So I can get into the reasons why if need be, but for now perhaps it suffices to say that I am considering a model whereby one Gradle build would “bootstrap” another Gradle build. That is, the first invocation of Gradle would be somewhat minimal, and it would primarily identify the necessary version and then pull down code for another Gradle build, which would be more substantial. The build would essentially have a “hand-off” from the first “bootstrap” build to the secondary “main” build.
Is there any precedence for this sort of thing? Are there any suggestions for having one Gradle build invoke another build? The Gradle code for the second build wouldn’t initially be present, and the first build will have moved to the Execution phase of the Gradle lifecycle already once the code for the “primary” build is available, so I don’t think I can truly make the two builds one. Therefore, right now I’m thinking I couldn’t really do much beyond Exec
ing Gradle (or gradlew
) again for the second build.
However, if there’s a better suggestion out there, I’m certainly all ears…