Class BrightSdkPlugin

java.lang.Object
com.brightdata.BrightSdkPlugin
All Implemented Interfaces:
org.gradle.api.Plugin<org.gradle.api.Project>

public class BrightSdkPlugin extends Object implements org.gradle.api.Plugin<org.gradle.api.Project>
Bright SDK Update Plugin

This plugin automates the process of updating the Bright SDK within your project.

For detailed setup instructions, see the Bright SDK Update Plugin Integration Guide.

Since:
1.0.0 author Vladislav S
  • Constructor Details

    • BrightSdkPlugin

      public BrightSdkPlugin()
  • Method Details

    • apply

      public void apply(org.gradle.api.Project project)
      The main method that applies the plugin to the project. It initializes the extension, sets up tasks, and prints the current version of the plugin.
      Specified by:
      apply in interface org.gradle.api.Plugin<org.gradle.api.Project>
      Parameters:
      project - The project to which the plugin is applied.
    • importBrightSdkWithDependencies

      public void importBrightSdkWithDependencies()
      Imports the Bright SDK AAR file into the project with it's dependencies.
    • downloadBrightSdk

      public void downloadBrightSdk(org.gradle.api.Task task)
      Downloads the Bright SDK tar.gz file from the specified URL.
      Parameters:
      task - The Gradle task that triggers this method.
    • extractBrightSdk

      public void extractBrightSdk(org.gradle.api.Task task)
      Extracts the Bright SDK AAR file from the downloaded tar.gz file.
      Parameters:
      task - The Gradle task that triggers this method.