javafxports / openjdk-jfx

The openjfx repo has moved to:
https://github.com/openjdk/jfx
GNU General Public License v2.0
1.01k stars 145 forks source link

> Could not get unknown property 'jfxBuildJdkVersijava' for root project 'openjdk-jfx' of type org.gradle.api.Project. #323

Closed elect86 closed 5 years ago

elect86 commented 5 years ago

I'm trying to build openjfx on an updated Ubuntu

But whenever I try to even simply clean I get the following

elect@elect-NUC8i5BEK:~/IdeaProjects/openjdk-jfx$ ./gradlew clean

> Task :buildSrc:compileGroovy
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/home/elect/.gradle/wrapper/dists/gradle-4.8-bin/divx0s2uj4thofgytb7gf9fsi/gradle-4.8/lib/groovy-all-2.4.12.jar) to method java.lang.Object.finalize()
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

> Configure project :
gradle.gradleVersion: 4.8
OS_NAME: linux
OS_ARCH: amd64
JAVA_HOME: /usr/lib/jvm/jdk-11.0.1
JDK_HOME: /usr/lib/jvm/jdk-11.0.1
java.runtime.version: 11.0.1+13
java version: 11.0.1
java build number: 13
jdk.runtime.version: 11.0.1+13
jdk version: 11.0.1
jdk build number: 13

FAILURE: Build failed with an exception.

* Where:
Build file '/home/elect/IdeaProjects/openjdk-jfx/build.gradle' line: 1288

* What went wrong:
A problem occurred evaluating root project 'openjdk-jfx'.
> Could not get unknown property 'jfxBuildJdkVersijava' for root project 'openjdk-jfx' of type org.gradle.api.Project.

I double checked all the dependencies and the variables, looks fine..

kevinrushforth commented 5 years ago

That's an odd error. Are any of the files in your repo modified by some unintended change? The string jfxBuildJdkVersijava doesn't exist in build.gradle, but jfxBuildJdkVersionMin does.

Another thing to try is to manually delete the following 4 directories:

build
buildSrc/build
.gradle
buildSrc/.gradle
elect86 commented 5 years ago

Apparently a fresh new clone solved the issue.

Then I hit #293, solved by removing -Werror in gtk2 and gtk3.ccFlags as suggested in #226

Thanks Kevin