Skip to content

Instantly share code, notes, and snippets.

@itzg
Created March 21, 2021 22:44
Show Gist options
  • Save itzg/f0afcb9cb57c07706a9fa6e402162e6d to your computer and use it in GitHub Desktop.
Save itzg/f0afcb9cb57c07706a9fa6e402162e6d to your computer and use it in GitHub Desktop.
Baseline build.gradle for non-modular JavaFX project
plugins {
// https://docs.gradle.org/current/userguide/application_plugin.html
id 'application'
// https://plugins.gradle.org/plugin/org.openjfx.javafxplugin
id 'org.openjfx.javafxplugin' version '0.0.9'
}
group 'me.itzg'
version '1.0-SNAPSHOT'
// https://docs.gradle.org/current/userguide/application_plugin.html#sec:application_usage
application {
mainClass = 'me.MainApp'
}
repositories {
mavenCentral()
}
javafx {
// find versions at https://search.maven.org/artifact/org.openjfx/javafx-base
version = "16"
// modules can be found at https://search.maven.org/search?q=g:org.openjfx
modules = [ 'javafx.controls', 'javafx.fxml' ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment