Is it possible to change the dependencies of gradle on runtime depending on which operating system it is included in?
I use SWT in my application, which has platform-dependent banks. I only want to distribute the right SWT-bank for each running platform. Sort of:
dependencies { runtime fileTree(dir: 'swt', include: 'swt_win_32.jar') if windows. runtime fileTree(dir: 'swt', include: 'swt_linux_x86.jar') if linux. }
Hope this question makes sense. Thanks.
source share