Class DepsConfiguration

java.lang.Object
com.teamdev.jxbrowser.gradle.DepsConfiguration

public abstract class DepsConfiguration extends Object
Configures JxBrowser repository and provides dependency notations for the artifacts.

Usage example:

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

     jxbrowser {
         // JxBrowser version.
         version = "7.21.2"

         // Use JxBrowser repository at specific location. It's the US by default.
         repositoryLocation = Repository.US

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

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

    Fields
    Modifier and Type
    Field
    Description
    The preferred location of the JxBrowser repository.
    The URL of the repository.
    A version of the JxBrowser.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.gradle.api.provider.Provider<String>
    Returns a dependency notation for the jxbrowser, an artifact with the core API of the library.
    org.gradle.api.provider.Provider<String>
    Returns a dependency notation for the jxbrowser-cross-platform, an artifact that includes binaries for all supported platforms.
    org.gradle.api.provider.Provider<String>
    Detects the current platform and returns a dependency notation for the corresponding module with binaries.
    void
    Adds a JxBrowser EAP repository to the project.
    org.gradle.api.provider.Provider<String>
    Returns a dependency notation for the jxbrowser-javafx, an artifact with JavaFX integration.
    org.gradle.api.provider.Provider<String>
    Returns a dependency notation for the jxbrowser-linux64, an artifact with Linux 64-bit binaries.
    org.gradle.api.provider.Provider<String>
    Returns a dependency notation for the jxbrowser-linux64-arm, an artifact with Linux 64-bit ARM binaries.
    org.gradle.api.provider.Provider<String>
    mac()
    Returns a dependency notation for the jxbrowser-mac, an artifact with macOS binaries.
    org.gradle.api.provider.Provider<String>
    Returns a dependency notation for the jxbrowser-mac-arm, an artifact with macOS ARM binaries.
    org.gradle.api.provider.Provider<String>
    Returns a dependency notation for the jxbrowser-swing, an artifact with Swing integration.
    org.gradle.api.provider.Provider<String>
    swt()
    Returns a dependency notation for the jxbrowser-swt, an artifact with SWT integration.
    org.gradle.api.provider.Provider<String>
    Returns a dependency notation for the jxbrowser-win32, an artifact with Windows 32-bit binaries.
    org.gradle.api.provider.Provider<String>
    Returns a dependency notation for the jxbrowser-win64, an artifact with Windows 64-bit binaries.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • version

      public String version
      A version of the JxBrowser.

      This is a mandatory field.

    • repositoryLocation

      public Repository repositoryLocation
      The preferred location of the JxBrowser repository.
    • repositoryUrl

      public String repositoryUrl
      The URL of the repository.

      If set, this property overrides repositoryLocation.

  • Constructor Details

    • DepsConfiguration

      public DepsConfiguration()
  • Method Details

    • includePreviewBuilds

      public void includePreviewBuilds()
      Adds a JxBrowser EAP repository to the project.
    • core

      public org.gradle.api.provider.Provider<String> core()
      Returns a dependency notation for the jxbrowser, an artifact with the core API of the library.
    • javafx

      public org.gradle.api.provider.Provider<String> javafx()
      Returns a dependency notation for the jxbrowser-javafx, an artifact with JavaFX integration.
    • swing

      public org.gradle.api.provider.Provider<String> swing()
      Returns a dependency notation for the jxbrowser-swing, an artifact with Swing integration.
    • swt

      public org.gradle.api.provider.Provider<String> swt()
      Returns a dependency notation for the jxbrowser-swt, an artifact with SWT integration.
    • win64

      public org.gradle.api.provider.Provider<String> win64()
      Returns a dependency notation for the jxbrowser-win64, an artifact with Windows 64-bit binaries.
    • win32

      public org.gradle.api.provider.Provider<String> win32()
      Returns a dependency notation for the jxbrowser-win32, an artifact with Windows 32-bit binaries.
    • linux64

      public org.gradle.api.provider.Provider<String> linux64()
      Returns a dependency notation for the jxbrowser-linux64, an artifact with Linux 64-bit binaries.
    • linuxArm

      public org.gradle.api.provider.Provider<String> linuxArm()
      Returns a dependency notation for the jxbrowser-linux64-arm, an artifact with Linux 64-bit ARM binaries.
    • mac

      public org.gradle.api.provider.Provider<String> mac()
      Returns a dependency notation for the jxbrowser-mac, an artifact with macOS binaries.
    • macArm

      public org.gradle.api.provider.Provider<String> macArm()
      Returns a dependency notation for the jxbrowser-mac-arm, an artifact with macOS ARM binaries.
    • crossPlatform

      public org.gradle.api.provider.Provider<String> crossPlatform()
      Returns a dependency notation for the jxbrowser-cross-platform, an artifact that includes binaries for all supported platforms.
    • currentPlatform

      public org.gradle.api.provider.Provider<String> currentPlatform()
      Detects the current platform and returns a dependency notation for the corresponding module with binaries.