title: Gradle doesn't see my swing components
body: <p>I've created a simple gui for my program using Intellij GUI Designer. Everything works fine however when I build gradle jar and try to run it I get NullPointerException (It creates Frame but doesn't see components). I was having a problem configurating build.gradle file so I belive it might be a reason.</p>
  
  <p>Here's build.gradle</p>
  
  <pre><code>group 'ImgScrapper'
  version '1.0-SNAPSHOT'
  
  apply plugin: 'groovy'
  apply plugin: 'java'
  
  
  
  
  jar {
      manifest {
          sourceSets.main.java.srcDirs = ['Main/src']
          attributes 'Main-Class': 'imgscrapper.Main'
      }
  }
  sourceCompatibility = 1.5
  
  repositories {
      mavenCentral()
  }
  
  dependencies {
      compile 'org.codehaus.groovy:groovy-all:2.3.11'
      compile 'org.jsoup:jsoup:1.9.2'
      testCompile group: 'junit', name: 'junit', version: '4.11'
  }
  </code></pre>
  
  <p>And here's catalog tree</p>
  
  <pre><code> .
   ├── build.gradle
   ├── gradle
   │   └── wrapper
   │       ├── gradle-wrapper.jar
   │       └── gradle-wrapper.properties
   ├── gradlew
   ├── gradlew.bat
   ├── Main
   │   ├── Main.iml
   │   └── src
   │       └── imgscrapper
   │           ├── Frame.form
   │           ├── Frame.java
   │           ├── GetImages.java
   │           └── Main.java
   ├── out
   │   └── production
   │       └── Main
   │           ├── com
   │           │   └── intellij
   │           │       └── uiDesigner
   │           │           └── core
   │           └── imgscrapper
   └── settings.gradle
  </code></pre>
  
  <p>Error messege</p>
  
  <pre><code>Exception in thread "main" java.lang.NullPointerException
          at imgscrapper.Frame.&lt;init&gt;(Frame.java:34)
          at imgscrapper.Main.main(Main.java:12)
  </code></pre>
  
  <p>Frame.java file</p>
  
  <pre><code> public class Frame extends JFrame{
       private JPanel panel;
       private JTextField textField1;
       private JButton button1;
       public JScrollPane scrollPane;
       .
       .
       .
  
       Frame(){
           setVisible(true);
           setSize(440,290);
           setLocation(450,300);
           setTitle("imgScrapper");
         -/*-&gt; Here's 34 line of Frame.java*/ textField1.setText("What are you looking ./r...");
           comboBox1.setSelectedIndex(1);
           comboBox2.setSelectedIndex(0);
  </code></pre>
  
  <p>Can you help mi with that ? Thanks</p>