Can I have a JIRA ticket on this also could you attach a sample project, I can play with?

On 7/29/19 3:10 AM, Chris Mackey wrote:
I have a gradle project that is generating classes at build time based
off some protobuff definitions. These are being generated in the
folder:

build/generated/source/proto/main/java

The Gradle IDEA plugin is applied to the project, so to my
understanding, it should automatically add the generated folder as a
sourceSet. This used to be the case for the Gradle plugin in the
previous version of NetBeans I used (8.1). This is my first issue, as
it's not clear that the built-in Gradle in NetBeans 11.1 is observing
this, as I do not see the additional sourceSet.

Secondly, even if I add the sourceSet myself in Gradle, and do not
rely on the IDEA plugin to do it for me, it shows up in NetBeans, but
it appears to be ignored. So I can see it, but I can't look at its
contents in the package view. I tried without "build/" being part of
the gitignore file, and "build" is not part of the regex that allows
me to define my own ignored folders. So I'm at a bit of a loss as to
how this folder is still being ignored, and if it is at all
configurable.

I tried moving the generated sources out of build and into:

generated-sources/source/proto/main/java

This and manually adding the updated sourceSet worked, but it's a
change that may affect many others (for whom my explanation will be
met with "Just use IntelliJ"), so I'd rather avoid it if possible.

Any ideas or explanations welcome!

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to