Created
March 21, 2021 22:44
-
-
Save itzg/f0afcb9cb57c07706a9fa6e402162e6d to your computer and use it in GitHub Desktop.
Baseline build.gradle for non-modular JavaFX project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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