Skip to content

Gradle plugin that allows adding JxBrowser deps into a project.

Notifications You must be signed in to change notification settings

TeamDev-IP/JxBrowser-Gradle-Plugin

Repository files navigation

JxBrowser Gradle Plugin

A Gradle plug-in that provides convenience methods for adding JxBrowser dependencies into a project.

Usage

import com.teamdev.jxbrowser.gradle.Repository

plugins {
    id("com.teamdev.jxbrowser") version "2.0.0"
}

jxbrowser {
    // The JxBrowser version (required).
    // Obtain the latest release version number at https://teamdev.com/jxbrowser/.
    version = "8.2.2"
    
    // If you're using Gradle 8.1.1 or older, use the following syntax:
    // version.set("8.2.2")

    // The location of JxBrowser repository to use (optional).
    // It's either North America or Europe.
    // If not specified, the location is set to North America.
    repository = Repository.EUROPE
    // repository = Repository.NORTH_AMERICA

    // Alternatively, it may point to a custom repo via its URL, as follows:
    // repository = "https://my.custom.repository"
}

dependencies {
    // Adds a dependency to the platform-specific Chromium binaries.
    implementation(jxbrowser.mac)      // Mac Intel
    implementation(jxbrowser.macArm)   // Mac Apple silicon
    implementation(jxbrowser.win32)    // Windows 32-bit
    implementation(jxbrowser.win64)    // Windows 64-bit
    implementation(jxbrowser.winArm)   // Windows 64-bit ARM
    implementation(jxbrowser.linux64)  // Linux 64-bit
    implementation(jxbrowser.linuxArm) // Linux 64-bit ARM

    // Detects the current platform and adds the corresponding Chromium binaries.
    implementation(jxbrowser.currentPlatform)

    // Adds dependencies to the UI toolkit integrations.
    implementation(jxbrowser.swt)
    implementation(jxbrowser.swing)
    implementation(jxbrowser.javafx)
    implementation(jxbrowser.compose)

    // Adds dependency to the JxBrowser Kotlin DSL.
    implementation(jxbrowser.kotlin)
}

The information in this repository is provided on the following terms: https://www.teamdev.com/terms-and-privacy

About

Gradle plugin that allows adding JxBrowser deps into a project.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages