title: Import SWT the Gradle way in Eclipse
body: <p>What is the correct way for importing SWT the Gradle way in a Eclipse Java project?</p>
  
  <p>The following solution on Stackoverflow does not work (it imports a tiny SWT library containing no classes, I can't make use of any SWT functionality):</p>
  
  <p><a href="https://stackoverflow.com/questions/36117049/import-swt-as-a-gradle-dependency">Import SWT as a Gradle dependency</a></p>
  
  <p>My application needs to use SWT UI classes and widgets (eg. Display, Shell, Composites and so on) and must absolutely be cross-platform.</p>
  
  <p>Note that my application also uses LWJGL, which I can import successfully using the page below which does provide the full Gradle code to use (click build under Release then select Gradle):</p>
  
  <p><a href="https://www.lwjgl.org/download" rel="nofollow noreferrer">LWJGL build.gradle import code</a></p>
  
  <p>Thanks for your help.</p>