title: Packaging jar with JSch with gradle
body: <p>I'm prepare packaging my code which works with ssh using Jsch. For packaging I'm using gradle - Jsch included as compile-time dependency. 
  When running </p>
  
  <pre><code>java -jar java_ssh.jar
  </code></pre>
  
  <p>I'm getting an</p>
  
  <blockquote>
    <p>NoClassDefFoundError on com.jcraft.jsch.JSch</p>
  </blockquote>
  
  <p>exception.<br>
  Here is the gradle build file:</p>
  
  <pre><code>apply plugin: 'java-library'
  apply plugin: 'java'
  apply plugin: 'org.junit.platform.gradle.plugin'
  apply plugin: 'eclipse'
  
  repositories {
      mavenCentral()
  }
  
  jar {
      manifest {
          attributes 'Main-Class': '&lt;my class with main method&gt;'
      }
  }
  
  dependencies {      
      compile 'com.jcraft:jsch:0.1.52'
  }
  </code></pre>
  
  <p>Should I specify more info for build?<br>
  Include somehow ssh related jar in my one?<br>
  Or class path?</p>