Patches for source dependency


(Björn Kautler) #1

Having read https://blog.gradle.org/introducing-source-dependencies I think that is a great improvement.
I’d like to suggest one addition that came to my mind immediately.
It would be nice if you could also have some patches applied automatically before building.
This way you can source-depend on a library and fix some specific bug by providing one or more patch files that are applied before building.
Basically how Debian-like Linux distros build their packages.
They often have in their package build additional patch files that modify the package, e. g. by fixing some security bug or similar.


(Sterling Greene) #2

Yep, this is something we’ve thought about and for now, we think you can accomplish this through injected plugins that make the modification process a part of the build.

And at some point, we can make this easier to do via built-in conventions or configuration.