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:
|
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
29
pom.xml
@ -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>
|
||||||
|
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