Is it possible to change gradle’s runtime dependencies according to the what the operation system it is on?
I’m using the SWT in my application which has jars that are platform dependent. I want to only distribute the right SWT jar for each platform it is running. Something like:
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 make sense. Thanks.
1 Answer