Hi,
I am using the Distribution Plugin, and I’d like to now create two distributions where they are both largely the same with exception of some platform-dependent external software. Instead of copying and pasting the same contents {}
twice, is there an elegant way to avoid repeating myself?
For example, I only need to change the contents of one directory in the distribution, everything else is boilerplate stuff:
distributions {
windows {
contents {
// boilerplate docs, software, licenses, etc.
into('ext') { /* Windows-related external software */ }
}
linux {
contents {
// boilerplate docs, software, licenses, etc.
into('ext') { /* Linux-related external software */ }
}
}
}