Skip to content

Commit 605de7f

Browse files
update samples to use javafx 21, gradle 8.5, gradle-plugin 0.1.0, maven-plugin 0.0.8 (#73)
1 parent f44ca19 commit 605de7f

File tree

104 files changed

+2676
-1773
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+2676
-1773
lines changed

.gitignore

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Gradle
2+
.gradle/
3+
target/
4+
5+
# Maven
6+
build/
7+
8+
# Eclipse
9+
bin/
10+
11+
# IntelliJ IDEA
12+
.idea/
13+
*.iml
14+
15+
MacOS
16+
.DS_Store

CommandLine/Modular/CLI/README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# samples
22

3-
JavaFX 13 samples to run with different options and build tools.
3+
JavaFX samples to run with different options and build tools.
44

5-
Download [JDK 11 or later](http://jdk.java.net/) for your operating system.
5+
Download [JDK 17 or later](http://jdk.java.net/) for your operating system.
66
Make sure `JAVA_HOME` is properly set to the JDK installation directory.
77

88
Download [JavaFX SDK](https://gluonhq.com/products/javafx/) for your operating
@@ -20,8 +20,8 @@ system and unzip to a desired location.
2020
If you run on Linux or Mac, follow these steps:
2121

2222
cd CommandLine/Modular/CLI/hellofx
23-
export PATH_TO_FX=path/to/javafx-sdk-13/lib
24-
export PATH_TO_FX_MODS=path/to/javafx-jmods-13
23+
export PATH_TO_FX=path/to/javafx-sdk/lib
24+
export PATH_TO_FX_MODS=path/to/javafx-jmods
2525
javac --module-path $PATH_TO_FX -d mods/hellofx $(find src -name "*.java")
2626

2727
To run the project:
@@ -38,8 +38,8 @@ To create and run a custom JRE:
3838
If you run on Windows, follow these steps:
3939

4040
cd CommandLine\Modular\CLI\hellofx
41-
set PATH_TO_FX="path\to\javafx-sdk-13\lib"
42-
set PATH_TO_FX_MODS="path\to\javafx-jmods-13"
41+
set PATH_TO_FX="path\to\javafx-sdk\lib"
42+
set PATH_TO_FX_MODS="path\to\javafx-jmods"
4343
dir /s /b src\*.java > sources.txt & javac --module-path %PATH_TO_FX% -d mods/hellofx @sources.txt & del sources.txt
4444

4545
To run the project:

CommandLine/Modular/Gradle/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# samples
22

3-
JavaFX 13 samples to run with different options and build tools.
3+
JavaFX samples to run with different options and build tools.
44

5-
Download [JDK 11 or later](http://jdk.java.net/) for your operating system.
5+
Download [JDK 17 or later](http://jdk.java.net/) for your operating system.
66
Make sure `JAVA_HOME` is properly set to the JDK installation directory.
77

88
## Modular - Gradle

CommandLine/Modular/Gradle/hellofx/build.gradle

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
plugins {
22
id 'application'
3-
id 'org.openjfx.javafxplugin' version '0.0.9'
4-
id 'org.beryx.jlink' version '2.12.0'
3+
id 'org.openjfx.javafxplugin' version '0.1.0'
4+
id 'org.beryx.jlink' version '2.26.0'
55
}
66

77
repositories {
88
mavenCentral()
99
}
1010

1111
javafx {
12-
version = "16"
12+
version = "21"
1313
modules = [ 'javafx.controls' ]
1414
}
1515

16-
mainClassName = "$moduleName/hellofx.HelloFX"
16+
application {
17+
mainClass = "hellofx.HelloFX"
18+
mainModule = "hellofx"
19+
}
1720

1821

1922
jlink {
Binary file not shown.

CommandLine/Modular/Gradle/hellofx/gradle/wrapper/gradle-wrapper.properties

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#Tue Nov 15 11:51:46 CET 2016
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
46
zipStoreBase=GRADLE_USER_HOME
57
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.0-all.zip

0 commit comments

Comments
 (0)