Upgrade to Java/JavaFX 11

This commit is contained in:
Charles Gould 2019-01-25 10:38:44 -05:00
parent 5153077104
commit 1aaa1ea5e3
3 changed files with 27 additions and 9 deletions

View File

@ -2,10 +2,10 @@ FreeCell implementation using the JavaFX Canvas API ([screenshot](freecell.png))
Prerequisites:
- Java 8+ installed
- Java 11+ installed
- Maven 3+ installed
To start a game, run the command `mvn jfx:run`
To start a game, run the command `mvn exec:java`
Controls:

29
pom.xml
View File

@ -5,30 +5,45 @@
<groupId>com.charego</groupId>
<artifactId>freecellfx</artifactId>
<version>0.1</version>
<version>0.2</version>
<organization>
<name>charego.com</name>
</organization>
<properties>
<javafx.version>11.0.2</javafx.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>${javafx.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<version>3.8.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<release>11</release>
</configuration>
</plugin>
<plugin>
<groupId>com.zenjava</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>8.1.2</version>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>com.charego.freecellfx.FreeCellApplication</mainClass>
</configuration>

View File

@ -0,0 +1,3 @@
module com.charego.freecellfx {
requires javafx.controls;
}