title: How to generate gradle.build with OpenApi Spring Generator
body: <p>I'm using the <a href="https://github.com/OpenAPITools/openapi-generator/tree/master/modules/openapi-generator-gradle-plugin" rel="nofollow noreferrer">Gradle Plugin for the OpenApi Generator</a>. The generation works well but it generates a pom.xml to be used with Maven. See the image: <a href="https://i.stack.imgur.com/wIAnd.png" rel="nofollow noreferrer">pom.xml</a></p>
  <p>I couldn't find how to generate a <em>gradle.build</em> instead of the <em>pom.xml</em> file when using the generator for <em>Spring</em>. There is no option either in the openApiGenerate <a href="https://github.com/OpenAPITools/openapi-generator/tree/master/modules/openapi-generator-gradle-plugin#configuration" rel="nofollow noreferrer">options</a> and neither in the Spring config <a href="https://openapi-generator.tech/docs/generators/spring/" rel="nofollow noreferrer">options</a>.</p>
  <p>Here is my gradle config:</p>
  <pre><code>openApiGenerate {
  generatorName = &quot;spring&quot;
  inputSpec = &quot;inputSpecDirectory&quot;
  outputDir = &quot;outputDirectory&quot;
  supportingFilesConstrainedTo = []
  apiPackage = &quot;com.example&quot;
  invokerPackage = &quot;com.example.invoker&quot;
  modelPackage = &quot;com.example.model&quot;
  configOptions = [
          dateLibrary: &quot;java8&quot;,
          interfaceOnly: &quot;true&quot;,
          additionalModelTypeAnnotations: &quot;@lombok.Builder;@lombok.NoArgsConstructor;@lombok.AllArgsConstructor&quot;,
  ]
  </code></pre>
  <p>}</p>
  <p>Thanks for the help.</p>