Package com.teamdev.jxbrowser.gradle
Class DepsConfiguration
java.lang.Object
com.teamdev.jxbrowser.gradle.DepsConfiguration
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
FieldsModifier and TypeFieldDescriptionThe preferred location of the JxBrowser repository.The URL of the repository.A version of the JxBrowser. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.gradle.api.provider.Provider<String>core()Returns a dependency notation for thejxbrowser, an artifact with the core API of the library.org.gradle.api.provider.Provider<String>Returns a dependency notation for thejxbrowser-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.voidAdds a JxBrowser EAP repository to the project.org.gradle.api.provider.Provider<String>javafx()Returns a dependency notation for thejxbrowser-javafx, an artifact with JavaFX integration.org.gradle.api.provider.Provider<String>linux64()Returns a dependency notation for thejxbrowser-linux64, an artifact with Linux 64-bit binaries.org.gradle.api.provider.Provider<String>linuxArm()Returns a dependency notation for thejxbrowser-linux64-arm, an artifact with Linux 64-bit ARM binaries.org.gradle.api.provider.Provider<String>mac()Returns a dependency notation for thejxbrowser-mac, an artifact with macOS binaries.org.gradle.api.provider.Provider<String>macArm()Returns a dependency notation for thejxbrowser-mac-arm, an artifact with macOS ARM binaries.org.gradle.api.provider.Provider<String>swing()Returns a dependency notation for thejxbrowser-swing, an artifact with Swing integration.org.gradle.api.provider.Provider<String>swt()Returns a dependency notation for thejxbrowser-swt, an artifact with SWT integration.org.gradle.api.provider.Provider<String>win32()Returns a dependency notation for thejxbrowser-win32, an artifact with Windows 32-bit binaries.org.gradle.api.provider.Provider<String>win64()Returns a dependency notation for thejxbrowser-win64, an artifact with Windows 64-bit binaries.
-
Field Details
-
version
A version of the JxBrowser.This is a mandatory field.
-
repositoryLocation
The preferred location of the JxBrowser repository. -
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
Returns a dependency notation for thejxbrowser, an artifact with the core API of the library. -
javafx
Returns a dependency notation for thejxbrowser-javafx, an artifact with JavaFX integration. -
swing
Returns a dependency notation for thejxbrowser-swing, an artifact with Swing integration. -
swt
Returns a dependency notation for thejxbrowser-swt, an artifact with SWT integration. -
win64
Returns a dependency notation for thejxbrowser-win64, an artifact with Windows 64-bit binaries. -
win32
Returns a dependency notation for thejxbrowser-win32, an artifact with Windows 32-bit binaries. -
linux64
Returns a dependency notation for thejxbrowser-linux64, an artifact with Linux 64-bit binaries. -
linuxArm
Returns a dependency notation for thejxbrowser-linux64-arm, an artifact with Linux 64-bit ARM binaries. -
mac
Returns a dependency notation for thejxbrowser-mac, an artifact with macOS binaries. -
macArm
Returns a dependency notation for thejxbrowser-mac-arm, an artifact with macOS ARM binaries. -
crossPlatform
Returns a dependency notation for thejxbrowser-cross-platform, an artifact that includes binaries for all supported platforms. -
currentPlatform
Detects the current platform and returns a dependency notation for the corresponding module with binaries.
-