All Projects → openjfx → Javafx Gradle Plugin

openjfx / Javafx Gradle Plugin

Licence: bsd-3-clause
Gradle plugin that makes it easy to work with JavaFX 11+

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Javafx Gradle Plugin

Javafx Gradle Plugin
Gradle plugin for JavaFX
Stars: ✭ 425 (+98.6%)
Mutual labels:  gradle-plugin, javafx
Ui4j
Web Automation for Java
Stars: ✭ 202 (-5.61%)
Mutual labels:  javafx
Rxkotlinfx
Kotlin extensions to the RxJavaFX framework
Stars: ✭ 177 (-17.29%)
Mutual labels:  javafx
Terminalfx
Java FX Terminal Emulator
Stars: ✭ 187 (-12.62%)
Mutual labels:  javafx
Maven Git Versioning Extension
This extension will virtually set project versions, based on current git branch or tag.
Stars: ✭ 178 (-16.82%)
Mutual labels:  gradle-plugin
Hotsuploader
JavaFX-based Replay Uploader for Heroes of the Storm
Stars: ✭ 190 (-11.21%)
Mutual labels:  javafx
Click Debounce
Using ASM to handle Android's click debounce, specially a quick double click.
Stars: ✭ 175 (-18.22%)
Mutual labels:  gradle-plugin
Jitwatch
Log analyser / visualiser for Java HotSpot JIT compiler. Inspect inlining decisions, hot methods, bytecode, and assembly. View results in the JavaFX user interface.
Stars: ✭ 2,545 (+1089.25%)
Mutual labels:  javafx
Vocabhunter
VocabHunter helps learners of foreign languages find vital new vocabulary to study.
Stars: ✭ 201 (-6.07%)
Mutual labels:  javafx
Javafxsmartgraph
Generic (Java FX) Graph Visualization Library
Stars: ✭ 186 (-13.08%)
Mutual labels:  javafx
Deeplearning4j Examples
Deeplearning4j Examples (DL4J, DL4J Spark, DataVec)
Stars: ✭ 2,215 (+935.05%)
Mutual labels:  javafx
Fxribbon
Ribbon control for Java, created in JavaFX
Stars: ✭ 178 (-16.82%)
Mutual labels:  javafx
Gradle Baseline
A set of Gradle plugins that configure default code quality tools for developers.
Stars: ✭ 191 (-10.75%)
Mutual labels:  gradle-plugin
Gradle Launch4j
A gradle-plugin to create windows executables with launch4j
Stars: ✭ 177 (-17.29%)
Mutual labels:  gradle-plugin
Awesomejavafx
A curated list of awesome JavaFX libraries, books, frameworks, etc...
Stars: ✭ 2,488 (+1062.62%)
Mutual labels:  javafx
Gradle Avro Plugin
A Gradle plugin to allow easily performing Java code generation for Apache Avro. It supports JSON schema declaration files, JSON protocol declaration files, and Avro IDL files.
Stars: ✭ 176 (-17.76%)
Mutual labels:  gradle-plugin
Gradle Testsets Plugin
A plugin for the Gradle build system that allows specifying test sets (like integration or acceptance tests).
Stars: ✭ 182 (-14.95%)
Mutual labels:  gradle-plugin
Jarfilterplugin
Help exclude classes before building the JAR into Android DEX archives.
Stars: ✭ 189 (-11.68%)
Mutual labels:  gradle-plugin
Substrate
Create native Java(FX) apps for desktop, mobile and embedded
Stars: ✭ 210 (-1.87%)
Mutual labels:  javafx
Gradle Errorprone Plugin
Gradle plugin to use the error-prone compiler for Java
Stars: ✭ 202 (-5.61%)
Mutual labels:  gradle-plugin

JavaFX Gradle Plugin

Simplifies working with JavaFX 11+ for gradle projects.

Gradle Plugin Portal Travis CI BSD-3 license

Getting started

To use the plugin, apply the following two steps:

1. Apply the plugin

Using the plugins DSL:

Groovy

plugins {
    id 'org.openjfx.javafxplugin' version '0.0.9'
}

Kotlin

plugins {
    id("org.openjfx.javafxplugin") version "0.0.9"
}
Alternatively, you can use the buildscript DSL:

Groovy

buildscript {
    repositories {
        maven {
            url "https://plugins.gradle.org/m2/"
        }
    }
    dependencies {
        classpath 'org.openjfx:javafx-plugin:0.0.9'
    }
}
apply plugin: 'org.openjfx.javafxplugin'

Kotlin

buildscript {
    repositories {
        maven {
            setUrl("https://plugins.gradle.org/m2/")
        }
    }
    dependencies {
        classpath("org.openjfx:javafx-plugin:0.0.9")
    }
}
apply(plugin = "org.openjfx.javafxplugin")

2. Specify JavaFX modules

Specify all the JavaFX modules that your project uses:

Groovy

javafx {
    modules = [ 'javafx.controls', 'javafx.fxml' ]
}

Kotlin

javafx {
    modules("javafx.controls", "javafx.fxml")
}

3. Specify JavaFX version

To override the default JavaFX version, a version string can be declared. This will make sure that all the modules belong to this specific version:

Groovy

javafx {
    version = '12'
    modules = [ 'javafx.controls', 'javafx.fxml' ]
}

Kotlin

javafx {
    version = "12"
    modules("javafx.controls", "javafx.fxml")
}

4. Cross-platform projects and libraries

JavaFX modules require native binaries for each platform. The plugin only includes binaries for the platform running the build. By declaring the dependency configuration compileOnly, the native binaries will not be included. You will need to provide those separately during deployment for each target platform.

Groovy

javafx {
    version = '12'
    modules = [ 'javafx.controls', 'javafx.fxml' ]
    configuration = 'compileOnly'
}

Kotlin

javafx {
    version = "12"
    modules("javafx.controls", "javafx.fxml")
    configuration = "compileOnly"
}

5. Using a local JavaFX SDK

By default, JavaFX modules are retrieved from Maven Central. However, a local JavaFX SDK can be used instead, for instance in the case of a custom build of OpenJFX.

Setting a valid path to the local JavaFX SDK will take precedence:

Groovy

javafx {
    sdk = '/path/to/javafx-sdk'
    modules = [ 'javafx.controls', 'javafx.fxml' ]
}

Kotlin

javafx {
    sdk = "/path/to/javafx-sdk"
    modules("javafx.controls", "javafx.fxml")
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].