You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Jaroslav Tulach (Jira)" <ji...@apache.org> on 2020/09/25 15:29:00 UTC
[jira] [Created] (NETBEANS-4848) Annotation processing in Gradle
4.10 vs. 6.x versions
Jaroslav Tulach created NETBEANS-4848:
-----------------------------------------
Summary: Annotation processing in Gradle 4.10 vs. 6.x versions
Key: NETBEANS-4848
URL: https://issues.apache.org/jira/browse/NETBEANS-4848
Project: NetBeans
Issue Type: Bug
Components: projects - Gradle
Affects Versions: 12.0, 12.1
Reporter: Jaroslav Tulach
Assignee: Laszlo Kishalmi
A description of a problem shall not start with finding the root cause, but be it: It never stops surprising me how incompatible Gradle is. I have written some {{build.gradle}} scripts for some version of Gradle, but then after few new releases, those scripts don't work at all. The fix is simple: include `gradlew` in your repository and fix Gradle version, but this is so(oooo!) different compared to Maven! Let me explain the problem:
* Follow [the steps|https://github.com/JaroslavTulach/oraclejet4j/blob/master/README.md] and get the repository, commit [eee35b7|https://github.com/JaroslavTulach/oraclejet4j/commit/eee35b737795ef03c45028c0809b388aa8552367]
* Usage from command line works, but:
* Open the project in NetBeans. There are errors in {{RootViewModel}} class
My IDE cannot find {{RootViewModelBase}}, {{NavItemBase}}, {{FooterLinkBase}}. Those classes are generated by annotation processor (\{{"com.dukescript.api:javafx.beaninfo:0.6"}}). A normal behavior of {{javac}} is to locate all annotation processors on "compile" class path and use them. Gradle 4.10 does that. New versions of Gradle don't do that(!!!!).
I assume NetBeans 12.x is using new version of Gradle internally and as such, it doesn't find the annotation processor. As such the code is rendered as broken. Can we fix that somehow (without rewriting the project to Maven ;))?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists