-
Notifications
You must be signed in to change notification settings - Fork 571
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
Support dependency on taskProvider (among other things) #2946
Conversation
244173f
to
9beef31
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.
Seems reasonable enough. I'm concerned about the change in ABI, though. There could be gradle plugins that are compiled against the old version of wire (with srcDir(String)
) which will break if used in a build with the new version of wire on the buildscript classpath. It might be better to lave srcDir
alone and add a new function that takes Any
so that there's no ABI breakage
I can keep srcDir(string) alongside it |
9beef31
to
d3bef4d
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.
Thanks, LGTM
/** Sets a directory. Example: "src/main/proto". */ | ||
@Deprecated("Deprecated in favor of 'srcDir(fileCollection)'") |
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.
If you are deprecating this function, seems like the one below it should go as well.
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.
🚀
@@ -291,11 +293,25 @@ open class WireExtension( | |||
/** Calling this will resolve the configuration. */ | |||
internal val roots: Set<File> | |||
get() = configuration.files + sourceDirectoriesAndLocalJars | |||
private val files: ConfigurableFileCollection by lazy(NONE) { | |||
val files = project.files() | |||
project.dependencies.add(configuration.name, files) |
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.
TIL you could pass a FileCollection
as a dependency
d3bef4d
to
e82f6bb
Compare
fixes #2933