apache / apache/netbeans

Gradle Project Can't Regconise and Change Java Source/Binary Level

Open
#5,958 5 comments 0 reactions 0 assignees View on GitHub
Gradle kind:bug
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 17

### What happened

Open a Gradle project by Netbeans, it can't recognize source and binary Java level in build.gradle file. See the screenshot attached.

In this example project, source and binary level set to 1.8 but Netbeans recognized it as 1.5.

Create a new Gradle project, source level sets to 1.5 and can't be changed in Netbeans.

![netbeans-gradle-bug](https://github.com/apache/netbeans/assets/3071035/5b87ac47-220c-4d3c-a2f6-13128fc8375e)

### How to reproduce

Open an existing Gradle project that defined source/binary level other than 1.5.

### Did this work correctly in an earlier version?

No / Don't know

### Operating System

Windows 10

### JDK

Java 8, Java 11

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

Research direction

Start by opening the existing and newly created Gradle projects described in the issue and inspect the source and binary level values in build.gradle versus those shown by NetBeans. Done means a non-1.5 level such as 1.8 is recognized correctly and can be changed for a new Gradle project.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, developer-experience
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.