title: Package io.swagger.v3.oas.annotations.media does not exit (Swagger Codegen)
body: <p>I'm generate a java client using swagger codegen cli tool (version 3.0.25) in gradle:</p>
  <pre><code>task doCodeGenSdk(type: JavaExec) {
  main = &quot;io.swagger.codegen.v3.Codegen&quot;
  classpath = configurations.codeGenCli
  inputs.files file(&quot;${swaggerSpecDir}/*.json&quot;)
  outputs.dir file(&quot;${codeGenDirSdk}&quot;)
  args = [&quot;generate&quot;, &quot;--lang&quot;, &quot;java&quot;, &quot;--input-spec&quot;, &quot;${swaggerSpecFile}&quot;,
          &quot;--config&quot;, &quot;${swaggerConfig}&quot;,
          &quot;--template-dir&quot;, &quot;${swaggerTemplateDir}&quot;,
          &quot;--output&quot;, &quot;${codeGenDirSdk}&quot;]
  systemProperty &quot;apiTests&quot;, &quot;false&quot;
  systemProperty &quot;apiDocs&quot;, &quot;false&quot;
  systemProperty &quot;modelTests&quot;, &quot;false&quot;
  systemProperty &quot;modelDocs&quot;, &quot;false&quot;}
  </code></pre>
  <p>The swagger config file is as shown below:</p>
  <pre><code>{
  &quot;library&quot;: &quot;resttemplate&quot;,
  &quot;artifactVersion&quot;: &quot;__VERSION__&quot;,
  &quot;artifactId&quot;: &quot;__ARTIFACT_ID__&quot;,
  &quot;modelPackage&quot;: &quot;com.model&quot;,
  &quot;apiPackage&quot;: &quot;com.api&quot;,
  &quot;invokerPackage&quot;: &quot;com.invoker&quot;,
  &quot;dateLibrary&quot;: &quot;java8&quot;,
  &quot;apiTests&quot;: false,
  &quot;java8&quot;: true,
  &quot;serializableModel&quot;: true,
  &quot;useBeanValidation&quot;: true,
  &quot;performBeanValidation&quot;: true}
  </code></pre>
  <p>The template-directory has the following mustache files:</p>
  <pre><code>ApiClient.mustache, generatedAnnotation.mustache, licenseInfo.mustach, pojo.mustache
  </code></pre>
  <p>The gradle file:</p>
  <pre><code>buildscript {
  repositories {
      maven {
          url &quot;https://plugins.gradle.org/m2/&quot;
      }
  }
  dependencies {
      classpath &quot;io.swagger.core.v3:swagger-gradle-plugin:2.1.10&quot;
    }
  }
  apply plugin: io.swagger.v3.plugins.gradle.SwaggerPlugin
  configurations {
      codeGenCli
  }
  dependencies {
      codeGenCli &quot;io.swagger.codegen.v3:swagger-codegen-cli:3.0.25&quot;
  }
  </code></pre>
  <p>The swagger codegen generates the files in the build directory, however there are import error for some of the packages.</p>
  <pre><code>error: package io.swagger.v3.oas.annotations.media does not exist
  </code></pre>
  <p>We were using swagger codegen tool to generate client code using swagger spec file in 2.0.</p>
  <p>This is the first time, we're trying to generate a client using a swagger spec file in 3.0.</p>
  <p>Any help would be much appreciated.</p>