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: Prerequisites:
- Java 8+ installed - Java 11+ installed
- Maven 3+ 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: Controls:

29
pom.xml
View File

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

View File

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