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
apply plugin: 'com.diffplug.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
).@Deprecated public class NativeDepsPlugin extends ProjectPlugin
Modifier and Type | Class and Description |
---|---|
static class |
NativeDepsPlugin.Legacy
Deprecated.
|
Constructor and Description |
---|
NativeDepsPlugin()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
applyOnce(Project project)
Deprecated.
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