You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.
Some Gradle DSL properties would benefit from implicit type safe conversions.
For example, to define a maven repository one has to:
repositories {
maven { url = uri("...") }
}
The call to project.uri('...') converts a String to an URI.
With implicit conversions one could simply write:
repositories {
maven { url ="..." }
}
One possible way to achieve this could be with implicit conversion compiler plugins, see #256 (comment). This would provide complete parity with Groovy with the advantage of compile time checking.
The text was updated successfully, but these errors were encountered:
I am not sure I like the idea of introducing implicit conversions to Kotlin ... It can be useful but also confusing, Kotlin statically type nature is a key point, that's maybe too much magic for my taste.
Some Gradle DSL properties would benefit from implicit type safe conversions.
For example, to define a maven repository one has to:
The call to
project.uri('...')
converts aString
to anURI
.With implicit conversions one could simply write:
One possible way to achieve this could be with implicit conversion compiler plugins, see #256 (comment). This would provide complete parity with Groovy with the advantage of compile time checking.
The text was updated successfully, but these errors were encountered: