Skip to content

Commit 90528fb

Browse files
Fix MDFX JavaFX25 (#77)
* `jpro-mdfx`, works now properly with JavaFX25. Previously the layouting of Listings was broken. * Updatede CI, and limited default examples javafx version - to make CI happy. * Gradle9 * fixing junit with gradle9 * fixing junit * making test slightly loser, allowing CI to work again. Message were dependent on OS/JavaVersion which changed in CI. * making test slightly loser, allowing CI to work again. Message were dependent on OS/JavaVersion which changed in CI. * Fixed unit-test due to change in microsoft auth
1 parent 275fa81 commit 90528fb

25 files changed

Lines changed: 41 additions & 56 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ${{ matrix.os }}
2020
strategy:
2121
matrix:
22-
jdk: [21, 23]
22+
jdk: [21, 25]
2323
os: [ubuntu-22.04, windows-2022]
2424
fail-fast: false
2525
max-parallel: 4

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ authentication methods configurable in an application.
1212
#### Miscellaneous
1313
* Removed AuthJwtFilter, because it was not used anywhere and seemed to be a leftover from the past.
1414

15+
#### Bugfixes
16+
* `jpro-mdfx`, works now properly with JavaFX25. Previously the layouting of Listings was broken.
17+
1518
### 0.5.7 (June 5, 2025)
1619

1720
#### Features

build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,11 @@ configure(subprojects.findAll { it.name != 'example' }) {
100100
}
101101

102102
dependencies {
103-
testImplementation "org.junit.jupiter:junit-jupiter:$JUNIT_VERSION"
104-
testImplementation "org.junit.jupiter:junit-jupiter-engine:$JUNIT_VERSION"
103+
testImplementation(platform("org.junit:junit-bom:$JUNIT_VERSION"))
104+
testImplementation("org.junit.jupiter:junit-jupiter")
105+
testImplementation("org.junit.jupiter:junit-jupiter-api")
106+
testImplementation("org.junit.jupiter:junit-jupiter-engine")
107+
testImplementation("org.junit.platform:junit-platform-launcher")
105108

106109
testImplementation "one.jpro:jmemorybuddy:$JMEMORYBUDDY_VERSION"
107110
testImplementation "one.jpro.platform.jpms:testfx-junit5:$TESTFX_VERSION"

example/build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,13 @@ dependencies {
2121
runtimeOnly "ch.qos.logback:logback-classic:$LOGBACK_VERSION"
2222
}
2323

24-
mainClassName = 'one.jpro.platform.example.Main'
25-
2624
javafx {
2725
version = "$JAVAFX_EXAMPLES_VERSION"
2826
modules = ['javafx.graphics', 'javafx.controls', 'javafx.fxml', 'javafx.media', 'javafx.swing', 'javafx.web']
2927
}
3028

3129
application {
32-
mainClass = "$mainClassName"
30+
mainClass = 'one.jpro.platform.example.Main'
3331
mainModule = 'one.jpro.platform.example'
3432
applicationDefaultJvmArgs = [
3533
"--add-exports", "javafx.base/com.sun.javafx.event=one.jpro.platform.media"

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
JPRO_PLATFORM_VERSION = 0.5.8-SNAPSHOT
22

3-
JPRO_VERSION = 2025.2.1
3+
JPRO_VERSION = 2025.3.1
44
JAVAFX_BUILD_VERSION = 17.0.15
55
JAVAFX_EXAMPLES_VERSION = 23.0.2
66
SIMPLEFX_VERSION = 3.2.40
@@ -9,7 +9,7 @@ JNODES_VERSION = 0.8.3
99
SCENIC_VIEW_VERSION = 11.0.3-SNAPSHOT-FORK
1010

1111
JAVAFX_PLUGIN_VERSION = 0.1.0
12-
MODULE_PLUGIN_VERSION = 1.8.15
12+
MODULE_PLUGIN_VERSION = 2.0.0
1313
OSDETECTOR_PLUGIN_VERSION = 1.7.3
1414
ENSEMBLE_GRADLE_PLUGIN_VERSION = 0.1.0-SNAPSHOT
1515
DEPENDENCY_CHECK_PLUGIN_VERSION = 9.1.0
@@ -29,7 +29,7 @@ CSSFX_VERSION = 11.5.1-jpms
2929
IKONLI_VERSION = 12.4.0
3030
ATLANTAFX_VERSION = 2.0.1
3131
COMMONS_IO_VERSION = 2.19.0
32-
JUNIT_VERSION = 5.11.4
32+
JUNIT_VERSION = 5.13.4
3333
ASSERTJ_VERSION = 3.27.3
3434
HAMCREST_VERSION = 3.0
3535
MOCKITO_VERSION = 5.18.0

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

jpro-auth/core/src/test/java/one/jpro/platform/auth/core/oauth2/provider/MicrosoftAuthenticationProviderTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import java.util.concurrent.ExecutionException;
88

99
import static org.junit.jupiter.api.Assertions.assertEquals;
10+
import static org.junit.jupiter.api.Assertions.assertTrue;
1011

1112
/**
1213
* Microsoft Authentication Provider tests.
@@ -51,8 +52,8 @@ public void autoConfigViaOpenIDConnectDiscoveryService() throws ExecutionExcepti
5152
assertEquals(List.of("pairwise"), options.getSupportedSubjectTypes());
5253
assertEquals(List.of("RS256"), options.getSupportedIdTokenSigningAlgValues());
5354
assertEquals(List.of("openid", "profile", "email", "offline_access"), options.getSupportedScopes());
54-
assertEquals(List.of("client_secret_post", "private_key_jwt", "client_secret_basic"),
55-
options.getSupportedTokenEndpointAuthMethods());
55+
assertTrue(options.getSupportedTokenEndpointAuthMethods()
56+
.containsAll(List.of("client_secret_post", "private_key_jwt", "client_secret_basic")));
5657
assertEquals(List.of("sub", "iss", "cloud_instance_name", "cloud_instance_host_name",
5758
"cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat",
5859
"auth_time", "acr", "nonce", "preferred_username", "name", "tid",

jpro-auth/example/build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ def examples = [
2929
'oauth' : 'one.jpro.platform.auth.example.oauth.OAuthApp'
3030
]
3131

32-
mainClassName = project.hasProperty("sample") ? examples[project.getProperties().get("sample")] : examples["google-login"]
33-
3432
application {
35-
mainClass = "$mainClassName"
33+
mainClass = project.hasProperty("sample") ? examples[project.getProperties().get("sample")] : examples["google-login"]
3634
mainModule = "one.jpro.platform.auth.example"
3735
}

jpro-file/example/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@ def examples = [
2424
'file-uploader' : 'one.jpro.platform.file.example.upload.FileUploaderSample'
2525
]
2626

27-
mainClassName = project.hasProperty("sample") ? examples[project.getProperties().get("sample")] : examples["text-editor"]
2827

2928
application {
30-
mainClass = "$mainClassName"
29+
mainClass = project.hasProperty("sample") ? examples[project.getProperties().get("sample")] : examples["text-editor"]
3130
mainModule = "one.jpro.platform.file.example"
3231
applicationDefaultJvmArgs = [
3332
"--add-exports", "javafx.base/com.sun.javafx.event=one.jpro.platform.file"

jpro-html-scrollpane/example/build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ javafx {
1515
modules = ['javafx.controls']
1616
}
1717

18-
mainClassName = 'one.jpro.platform.htmlscrollpane.example.HTMLScrollPaneSample'
19-
2018
application {
21-
mainClass = "$mainClassName"
19+
mainClass = 'one.jpro.platform.htmlscrollpane.example.HTMLScrollPaneSample'
2220
mainModule = "one.jpro.platform.htmlscrollpane.example"
2321
}

0 commit comments

Comments
 (0)