Class SwaggerHubPlugin

java.lang.Object
io.github.ludy87.swagger.swaggerhub.v2.SwaggerHubPlugin
All Implemented Interfaces:
org.gradle.api.Plugin<org.gradle.api.Project>

public class SwaggerHubPlugin extends Object implements org.gradle.api.Plugin<org.gradle.api.Project>
The SwaggerHubPlugin class is a Gradle plugin that provides tasks for interacting with SwaggerHub. It allows users to download API definitions, upload API definitions, and set default versions for APIs hosted on SwaggerHub.
  • Constructor Details

    • SwaggerHubPlugin

      public SwaggerHubPlugin()
  • Method Details

    • apply

      public void apply(org.gradle.api.Project project)
      Applies the SwaggerHub plugin to the given Gradle project. It registers three tasks: swaggerhubDownload, swaggerhubUpload, and swaggerhubSetDefaultVersion.
      Specified by:
      apply in interface org.gradle.api.Plugin<org.gradle.api.Project>
      Parameters:
      project - the Gradle project to which the plugin is applied