apache / apache/netbeans

NetBeans shows dependency errors in Gradle projects that are successfully built

Open
#7,738 5 comments 0 reactions 1 assignee Claimed by @sdedic View on GitHub
Gradle JavaFX kind:bug needs:triage
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:
![Screenshot from 2024-09-07 12-28-45](https://github.com/user-attachments/assets/bba85e46-b222-4c35-9072-570e03ae3699)

### 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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.