Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-4848

Annotation processing in Gradle 4.10 vs. 6.x versions

    XMLWordPrintableJSON

Details

    Description

      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 and get the repository, commit eee35b7
      • 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 )?

      Attachments

        Issue Links

          Activity

            People

              lkishalmi Laszlo Kishalmi
              jtulach Jaroslav Tulach
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m