Skip to content

2022.1

Compare
Choose a tag to compare
@hauner hauner released this 13 Mar 08:22
· 4 commits to 2022.1.x since this release

This version will only work with gradle 7+, use 2021.3 with gradle 5.5+

internal cleanup

removed usage of deprecated gradle apis

support for processing multiple openapi files with the same processor

By default, the name of a processor configuration block is used to select the processor library. Each processor library has a name and the plugin tries to load the processor library with that name.

To process multiple distinct openapi descriptions with the same processor it is possible to use user selected names for the processor blocks and explicitly configure the processor name using processorName():

// build.gradle

openapiProcessor {
  apiOne {
    processorName "spring"

    apiPath "${projectDir}/src/api-one/openapi.yaml"
      ... options of openapi-processor-spring
  }

  apiTwo {
    processorName "spring"

    apiPath "${projectDir}/src/api-two/openapi.yaml"
      ... options of openapi-processor-spring
  }
}