-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Gradle Kotlin DSL build script #281
Comments
@tmohme Thanks for the suggestion. I prefer the Groovy syntax of Gradle, but that's just a personal preference given my Groovy history. I have the feeling that it gives me a bit more leeway and is less verbose in some cases. But what do you mean by "plus changing the structure to avoid cross-project configuration"? That sounds interesting. |
In the "early days" of Gradle, using "subprojects {}" and "allprojects {}" were the only means to share build logic between Subprojects. |
This make sense - even if the Gradle documentation requires quite some hopping to understand how it works. @tmohme If you’re willing to start with convention plugins and keep the Groovy DSL (at least in the beginning) I’d be more than happy. |
I recently migrated https://github.com/allure-framework/allure-gradle to the idiomatic structure, and I incline to like that structure (it is literally the same as the one used by Gradle itself) The only bit I would like to do slightly different is to name |
Testing Problem
It does not solve any particular testing problem ;)
Suggested Solution
If you are interested in having type-safe Kotlin DSL build scripts, I would try to convert the existing ones (plus changing the structure to avoid cross-project configuration) in a PR.
Discussion
Structurally, the result would look similar to what is described at https://docs.gradle.org/current/samples/sample_building_kotlin_applications_multi_project.html (especially the buildSrc).
The text was updated successfully, but these errors were encountered: