-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add example to configure linker args #833
Comments
Oh actually there's one with the objective c plugin. But stil it would be nice to have in the C plugins. |
You are right; we should expand the samples. As for making the DSL more friendly to Kotlin, we aren't Kotlin experts. If you could help us by pointing out the Kotlin concept for these types of Kotlin-friendly methods, we can look into adding them. |
Mhh about kotlin friendly API, this might require writing kotlin code. For example the method DomainObjectCollection {
// ...
<S extends T> DomainObjectCollection<S> withType(Class<S> type, Action<? super S> configureAction);
} and usable in Groovy DSL or Kotlin DSL
However to improve the friendliness of the kotlin DSL API tasks.withType<JavaExec>() {
} There are extension function inline fun <reified S : Any> DomainObjectCollection<in S>.withType(noinline configuration: S.() -> Unit) =
withType(S::class.java, configuration) This function declaration might be daunting at first as there are 6 different concepts there
|
Thanks a lot for the information. I will see what I can do about that. |
For example in Kotlin DSL
Also I wonder if the API could be make more kotlin friendly, so one could write
The text was updated successfully, but these errors were encountered: