This was helpful before SWT jars were available on maven central,
but now MavenCentralPlugin is a better option.
Adds the platform-specific SWT and jface jars which are appropriate for the
currently running platform (on the dev machine).
Adds the following jars:
* `org.eclipse.swt`
* `org.eclipse.jface`
* `org.eclipse.core.commands`
* `org.eclipse.equinox.common`
```groovy
apply plugin: 'com.diffplug.swt.nativedeps'
```
* Property `SWT_VERSION` sets the eclipse version from which to get SWT (e.g. `4.6.0`).
* Property `SWT_P2_REPO` sets the p2 repository which is being used (ignores the SWT_VERSION property).
* Property `SWT_P2_GROUP` sets the maven group name for the downloaded artifacts, (defaults to `eclipse-swt-deps`).
### Example projects
* [durian-swt](https://github.com/diffplug/durian-swt)
* (send us yours in a [PR](https://github.com/diffplug/goomph)!)
MavenCentralPluginis a better option. Adds the platform-specific SWT and jface jars which are appropriate for the currently running platform (on the dev machine). Adds the following jars: * `org.eclipse.swt` * `org.eclipse.jface` * `org.eclipse.core.commands` * `org.eclipse.equinox.common` ```groovy apply plugin: 'com.diffplug.swt.nativedeps' ``` * Property `SWT_VERSION` sets the eclipse version from which to get SWT (e.g. `4.6.0`). * Property `SWT_P2_REPO` sets the p2 repository which is being used (ignores the SWT_VERSION property). * Property `SWT_P2_GROUP` sets the maven group name for the downloaded artifacts, (defaults to `eclipse-swt-deps`). ### Example projects * [durian-swt](https://github.com/diffplug/durian-swt) * (send us yours in a [PR](https://github.com/diffplug/goomph)!)