title: Gradle migration to 7.4
body: <p>After migrating to Gradle 7, the zip task no longer includes the jar created in the 'jar' task. What could be wrong?</p>
  <p>This creates an open-source JDBC driver. Any improvements are welcome.</p>
  <p>Gradle has to compile the code, build a jar and a zip with all dependencies.</p>
  <pre><code>buildscript {
      repositories {
          mavenCentral()
          maven { url &quot;https://plugins.gradle.org/m2/&quot; }
      }
      dependencies {
          classpath &quot;gradle.plugin.install4j.install4j:gradle_plugin:7.0.8&quot;
      }
  }
  plugins{
      id 'org.hidetake.ssh' version '2.7.1'
  }
  apply plugin: 'application'
  apply plugin: 'distribution'
  
  repositories {
      mavenCentral()
  }
  
  
  dependencies {
      implementation &quot;com.github.albfernandez:javadbf:1.13.2&quot;
      implementation &quot;com.h2database:h2:2.1.212&quot;
      testImplementation 'junit:junit:4.13.2'
  }
  
  compileJava{
      sourceCompatibility = '1.8'
      targetCompatibility = '1.8'
  }
  
  jar {
      archiveFileName =&quot;dbschema-dbf-jdbc${driverVersion}.jar&quot;
      manifest {
          attributes 'Main-Class': 'com.wisecoders.dbschema.dbf.JdbcDriver'
          attributes 'Specification-Version': &quot;$driverVersion&quot;
          attributes 'Specification-Vendor': &quot;Wise Coders&quot;
          attributes 'Implementation-Vendor-Id': &quot;dbschema.com&quot;
          attributes 'Implementation-Vendor': &quot;Wise Coders&quot;
          attributes 'Implementation-Version': new Date().format( 'yyMMdd' )
      }
  }
  
  
  task zip(type: Zip, dependsOn:['clean','jar']) {
      archiveName 'DBFJdbcDriver.zip'
      from configurations.runtimeClasspath.allArtifacts.files
      from configurations.runtimeClasspath
  }
  </code></pre>