title: Gradle: JDBC driver not compiled into JAR
body: <p>I have a module <code>build.gradle</code> file that looks like this:</p>
  <pre><code>apply plugin: 'java'
  
  sourceCompatibility = 1.5
  version = '1.0'
  
  repositories {
      mavenCentral()
  }
  
  dependencies {
      testCompile group: 'junit', name: 'junit', version: '4.11'
      compile 'mysql:mysql-connector-java:5.1.6'
  }
  </code></pre>
  <p>I also have an artefact set up like this:</p>
  <p><img src="https://i.stack.imgur.com/b14L6.png" alt="Screenshot" /></p>
  <p>When I build this artifact, my classes are included but MySQL driver is not. When executed, MySQL driver class is not found. How do I build so that my JAR artifact (used as a library)
  ccontains MySQL JDBC driver?</p>