Class OpenApiGeneratorMetaExtension

  • All Implemented Interfaces:

    
    public class OpenApiGeneratorMetaExtension
    
                        

    Gradle project level extension object definition for the meta-generator task

    Author:

    Jim Schubert

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Property<String> getGeneratorName() The human-readable generator name of the newly created template generator.
      final Property<String> getPackageName() The packageName generatorName to put the main class into (defaults to org.openapitools.
      final DirectoryProperty getOutputFolder() Where to write the generated files (current dir by default).
      final Unit setOutputFolder(String path) Backwards-compatibility bridge for outputFolder
      final Unit set(DirectoryProperty $self, String path) Extension function to allow setting outputFolder with a String path in Kotlin DSL.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OpenApiGeneratorMetaExtension

        OpenApiGeneratorMetaExtension(Project project)
    • Method Detail

      • getGeneratorName

         final Property<String> getGeneratorName()

        The human-readable generator name of the newly created template generator. Defaults to "default".

      • getPackageName

         final Property<String> getPackageName()

        The packageName generatorName to put the main class into (defaults to org.openapitools.codegen)

      • getOutputFolder

         final DirectoryProperty getOutputFolder()

        Where to write the generated files (current dir by default).

      • set

         final Unit set(DirectoryProperty $self, String path)

        Extension function to allow setting outputFolder with a String path in Kotlin DSL. Example: outputFolder.set("$buildDir/generated")