NetBeans shows dependency errors in Gradle projects that are successfully built
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Apache NetBeans version
Apache NetBeans 22
### What happened
After successful building entire Gradle project (JavaFX) NB shows dependency errors.
### Language / Project Type / NetBeans Component
Java Gradle project with JPMS
### How to reproduce
git clone https://github.com/openjdk/jfx
cd jfx
git checkout tags/22+1
In NB File -> Open project -> path to jfx folder.
JFX project -> right click -> Properties -> Build -> Gradle execution -> select JDK up to 19 version
Resolve all erros
JFX project -> right click -> Open in Terminal -> $./gradlew build -x test -Dorg.gradle.java.home=/opt/jdk-17.0.2
Now if you open any module, for example javafx.controls you will get:

### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Ubuntu 20.04.6 LTS
### JDK
Java: 22.0.1; OpenJDK 64-Bit Server VM 22.0.1+8-16
### Apache NetBeans packaging
Apache NetBeans binary zip
### Anything else
_No response_
### Are you willing to submit a pull request?
No
Contributor guide
Assessment
This issue has not been assessed yet.