Package com.diffplug.gradle.swt
Class NativeDepsPlugin
- java.lang.Object
-
- com.diffplug.gradle.ProjectPlugin
-
- com.diffplug.gradle.swt.NativeDepsPlugin
-
@Deprecated public class NativeDepsPlugin extends ProjectPlugin
Deprecated.This was helpful before SWT jars were available on maven central, but nowMavenCentralPlugin
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)!)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NativeDepsPlugin.Legacy
Deprecated.
-
Constructor Summary
Constructors Constructor Description NativeDepsPlugin()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
applyOnce(Project project)
Deprecated.Plugin application, which is guaranteed to execute only once.-
Methods inherited from class com.diffplug.gradle.ProjectPlugin
apply, getPlugin, treeDef
-
-
-
-
Method Detail
-
applyOnce
protected void applyOnce(Project project)
Deprecated.Description copied from class:ProjectPlugin
Plugin application, which is guaranteed to execute only once.- Specified by:
applyOnce
in classProjectPlugin
-
-