Search Gradle plugins

com.diffplug.gradle.swt.nativedeps

Adds the platform-specific SWT jars to the runtime classpath so that SWT code can run.

https://github.com/diffplug/goomph

Sources: https://github.com/diffplug/goomph

Add this plugin to your build using the plugins DSL:

plugins {
  id("com.diffplug.gradle.swt.nativedeps") version "3.9.1"
}

See also:

  • Adding the plugin to build logic for usage in precompiled script plugins.

    See the relevant documentation for more information.

    Add this plugin as a dependency to <convention-plugins-build>/build.gradle(.kts):

    dependencies {
      implementation("com.diffplug.gradle.swt.nativedeps:com.diffplug.gradle.swt.nativedeps.gradle.plugin:3.9.1")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("com.diffplug.gradle.swt.nativedeps")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("com.diffplug.gradle.swt.nativedeps:com.diffplug.gradle.swt.nativedeps.gradle.plugin:3.9.1")
      }
    }
    
    apply(plugin = "com.diffplug.gradle.swt.nativedeps")
  • Applying plugins to all subprojects .