kotlin-dsl-samples icon indicating copy to clipboard operation
kotlin-dsl-samples copied to clipboard

Demonstrate buildSrc tests in samples

Open jmfayard opened this issue 5 years ago • 2 comments

According to the gradle guide, buildSrc should be preferred over script plugins as it is easier to maintain, refactor and test the code.

Yet none of the samples inside kotlin-dsl have a directory /buildSrc/src/test

So one hand we are on our own to figure out how it works, on the other hand it gives the impression that someone is not walking the walk.

jmfayard avatar Sep 02 '18 08:09 jmfayard

This have nothing to do with the Kotlin DSL. You should create/move this issue to the gadle/gradle repository when you think the samples needs to be improved. Providing a link to the specific documentation would also make sense...

On Sun, Sep 2, 2018, 10:11 AM Jean-Michel Fayard [email protected] wrote:

According to the gradle guide, buildSrc should be preferred over script plugins as it is easier to maintain, refactor and test the code.

Yet none of the samples inside kotlin-dsl have a directory /buildSrc/src/test

So one hand we are on our own to figure out how it works, on the other hand it gives the impression that someone is not walking the walk.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gradle/kotlin-dsl/issues/1087, or mute the thread https://github.com/notifications/unsubscribe-auth/AJwYeza5dW3eZqioj3G3mYYKw5NgEWK0ks5uW5KtgaJpZM4WWg2q .

StefMa avatar Sep 02 '18 09:09 StefMa

This have nothing to do with the Kotlin DSL.

I am talking about those samples so yes it has to do something with the Kotlin DSL

https://github.com/gradle/kotlin-dsl/tree/master/samples

This is a lost occasion to teach by example and to show the benefits of the best practices

jmfayard avatar Sep 02 '18 10:09 jmfayard