-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow arbitrary code snippet to be added to GradleBuild #1079
Comments
Thanks for your patience. I'm afraid I don't think I understand the request. The original title of the issue was "Unable to customize distributions fully" but Initializr has no support at all at the moment for configuring a Gradle build's distributions. If you are extending the Groovy and Kotlin DSL writers' capabilities to support the configuration of distributions, can you not implement support for the |
Sorry about the confusion, I was trying to show what I'm attempting to do with my code block in my original post. I want to be able to customize the generated
An alternative that would be fine with me would to be able to customize the final content of the file and just being able to add this additional block of content. I realize my use case is probably rather unique. The existing |
Thanks for the clarification. Your code above is treating I don't think we want to provide a complete API for writing arbitrary Groovy or Kotlin DSL code so an escape hatch that allows customisation of the end result may be the best option here. |
Thanks for the help. I think you are right that just some kind of callback that allows for final customization before writing the file would work just great for me. |
I've repurposed this issue to allow arbitrary code snippet to be added at the end of a gradle build. |
In my custom Spring initializr instance I would like to include this block in every
build.gradle
file that is produced. As far as I could tell there was no way to produce afrom
block that took a string parameter as well as a closure parameter. It's possible I was missing this though.The text was updated successfully, but these errors were encountered: