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:35:00 UTC

[jira] [Commented] (NETBEANS-4848) Annotation processing in Gradle 4.10 vs. 6.x versions

    [ https://issues.apache.org/jira/browse/NETBEANS-4848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17202245#comment-17202245 ] 

Jaroslav Tulach commented on NETBEANS-4848:
-------------------------------------------

Using Tools/Options/Java/Gradle and setting _Use Standard Gradle Version to 4.10_ (and restarting) fixes the problem. However I don't want to change the Gradle version for all projects. Couldn't the IDE use `gradlew` to deduce the classpath/processor path? Btw. the checkbox _Preffer to use Gradle Wrapper that Comes with the Project_ is checked.

> 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
>            Priority: Major
>
> 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