|
@@ -34,7 +34,7 @@ jobs:
|
|
|
- name: Ensure major jfx version in pom equals in jdk
|
|
|
shell: pwsh
|
|
|
run: |
|
|
|
- $jfxPomVersion = (&mvn help:evaluate -Dexpression=javafx.version -q -DforceStdout) -split "\."
|
|
|
+ $jfxPomVersion = (&mvn help:evaluate "-Dexpression=javafx.version" -q -DforceStdout) -split "\."
|
|
|
$jfxJdkVersion = (Get-Content -path "${env:JAVA_HOME}/lib/javafx.properties" | Where-Object {$_ -like 'javafx.version=*' }) -replace '.*=',''
|
|
|
if ($jfxPomVersion[0] -ne $jfxJdkVersion) {
|
|
|
Write-Error "Major part of JavaFX version in pom($($jfxPomVersion[0])) does not match the version in JDK(${jfxJdkVersion}) "
|