Class DepsPlugin

java.lang.Object
com.teamdev.jxbrowser.gradle.DepsPlugin
All Implemented Interfaces:
org.gradle.api.Plugin<org.gradle.api.Project>

public class DepsPlugin extends Object implements org.gradle.api.Plugin<org.gradle.api.Project>
A plugin that configures JxBrowser repository and helps with dependencies.

Usage example:

     dependencies {
         implementation(jxbrowser.swing())
         implementation(jxbrowser.currentPlatform())
     }

     jxbrowser {
         version = "7.21.2"
         // Use JxBrowser repository at specific location. It's the US by default.
         repositoryLocation = JxBrowserRepository.US

         // Or use your custom repository. If set, this field is preferred.
         repositoryUrl = "https://my.custom.repository"

         // Include JxBrowser EAP repository.
         includePreviewBuilds()
     }
 
  • Field Details

  • Constructor Details

    • DepsPlugin

      public DepsPlugin()
  • Method Details

    • apply

      public void apply(org.gradle.api.Project project)
      Specified by:
      apply in interface org.gradle.api.Plugin<org.gradle.api.Project>