Upgrade to Java/JavaFX 11
This commit is contained in:
parent
5153077104
commit
1aaa1ea5e3
@ -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
29
pom.xml
@ -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>
|
||||
|
3
src/main/java/module-info.java
Normal file
3
src/main/java/module-info.java
Normal file
@ -0,0 +1,3 @@
|
||||
module com.charego.freecellfx {
|
||||
requires javafx.controls;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user