-
Notifications
You must be signed in to change notification settings - Fork 5k
Include Kotlin DSL samples in wrapper chapter #6434
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Given that it's currently not possible to use named
here getByName
will do. I would encourage the use of the block version though since it allows for evolving the task configuration more naturally:
tasks.getByName<Wrapper>("wrapper") {
distributionType = Wrapper.DistributionType.ALL
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated. Want to look again when you have a moment? Is this otherwise merge-able?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes you are right, that make more sense @bamboo.
Especially for new Gradle users its way more understandable 👍
Signed-off-by: StefMa <[email protected]>
Signed-off-by: StefMa <[email protected]>
e6e49ff
to
44aa4f1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 :)
Context
This builds upon @StefMa's PR to convert the wrapper user manual doc to include Kotlin DSL samples and test them.
Passing branch build
Gradle Core Team Checklist