Is there a way to reduce the amount of gradle wrap...
# community-support
t
Is there a way to reduce the amount of gradle wrappers (gradle-wrapper.jar + gradlew files) in a composite build? i currently have 25 gradle wrappers in my git repo. While not very big individually (~100kb per module) they do add up.
v
Just delete them?
t
I assume that only works for modules that are not meant to be built on their own? Most (13) of my modules are not included in another module and i need to be able to individually run/build them.
b
Symlink?
e
they aren't needed, you can always use another project's wrapper (
../../gradlew
)
party gradlephant 1
☝️ 1
unfortunately I've heard the ide will recreate the wrappers every sync
but they're not needed for the ide either, IntelliJ will use the right Gradle just based off of
gradle-wrapper.properties
without the wrapper scripts and jar
☝️ 1
v
unfortunately I've heard the ide will recreate the wrappers every sync
Where did you hear that? What are the details? Never heard or seen that.
t
Fwiw, if they're all the same version (i.e. byte-for-byte equivalent), then at least they won't be duplicated in your SCM (Git at least will only store one blob for the gradle-wrapper.jar for instance), so they'll only take space in your working tree. But symlinks would work too (as long as you don't need to support Windows; https://github.com/git-for-windows/git/wiki/Symbolic-Links)