public class NativeDepsPlugin extends ProjectPlugin
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
apply plugin: 'com.diffplug.gradle.swt.nativedeps'
SWT_VERSION
sets the eclipse version from which to get SWT (e.g. 4.6.0
).SWT_P2_REPO
sets the p2 repository which is being used (ignores the SWT_VERSION property).SWT_P2_GROUP
sets the maven group name for the downloaded artifacts, (defaults to eclipse-swt-deps
).Constructor and Description |
---|
NativeDepsPlugin() |
Modifier and Type | Method and Description |
---|---|
protected void |
applyOnce(Project project)
Plugin application, which is guaranteed to execute only once.
|
apply, getPlugin, treeDef
protected void applyOnce(Project project)
ProjectPlugin
Plugin application, which is guaranteed to execute only once.
applyOnce
in class ProjectPlugin