title: Error including bouncycastle provider
body: <p>I need to use <code>bouncycastle provider</code> library in my project.</p>
  
  <p>I have included it the gradle project.</p>
  
  <pre><code>apply plugin: 'application'
  sourceCompatibility = '1.6'
  version = '1.0.0'
  mainClassName = 'path.to.main.file'
  
      dependencies {
          compile "org.mariadb.jdbc:mariadb-java-client:+"
          compile "org.bouncycastle:bcprov-jdk16:+"
          compile "commons-codec:commons-codec:+"
          testCompile "junit:junit:+"
      }
  </code></pre>
  
  <p>The project build successfully. But when I try to run the project. It is not able to find the <code>bouncycastle</code></p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider
      at com.example.Server.main(Server.java:50)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
  Caused by: java.lang.ClassNotFoundException: org.bouncycastle.jce.provider.BouncyCastleProvider
      at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      ... 6 more
  </code></pre>
  
  <p>How can I fix it ?</p>