From f2f0151dfb593a4e265bcdb1bbe39dc65e536a61 Mon Sep 17 00:00:00 2001 From: Charles Gould Date: Tue, 12 Mar 2019 23:24:53 -0400 Subject: [PATCH] Add openjfx maven plugin --- README.md | 2 ++ pom.xml | 8 ++++++++ src/main/java/module-info.java | 2 ++ 3 files changed, 12 insertions(+) diff --git a/README.md b/README.md index e59ee66..c431332 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,8 @@ Prerequisites: To start a game, run the command `mvn exec:java` +Or (experimental with modules), run the command `mvn javafx:compile`, then `mvn javafx:run` + Controls: - F2 to restart diff --git a/pom.xml b/pom.xml index 5ef8aa7..1b93e9b 100644 --- a/pom.xml +++ b/pom.xml @@ -56,6 +56,14 @@ + + org.openjfx + javafx-maven-plugin + 0.0.1 + + com.charego.freecell.FreeCellApplication + + org.codehaus.mojo exec-maven-plugin diff --git a/src/main/java/module-info.java b/src/main/java/module-info.java index 2c093a2..15df23c 100644 --- a/src/main/java/module-info.java +++ b/src/main/java/module-info.java @@ -1,3 +1,5 @@ module com.charego.freecell { requires javafx.controls; + + exports com.charego.freecell to javafx.graphics; }