Skip to content

Conversation

eriwen
Copy link
Contributor

@eriwen eriwen commented Aug 20, 2018

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

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation
  • Recognize contributor in release notes

@eriwen eriwen self-assigned this Aug 20, 2018
@eriwen eriwen requested a review from bamboo August 20, 2018 17:24
@eriwen eriwen added this to the 5.0 RC1 milestone Aug 20, 2018
@eriwen eriwen changed the title Ew/docs/wrapper kts Include Kotlin DSL samples in wrapper chapter Aug 20, 2018
@eriwen eriwen requested a review from pioterj August 20, 2018 17:48
Copy link
Member

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
}

Copy link
Contributor Author

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?

Copy link
Contributor

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 👍

Copy link
Member

@bamboo bamboo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Copy link
Contributor

@StefMa StefMa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 :)