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

Laszlo Kishalmi commented on NETBEANS-2755:
-------------------------------------------

Finally I could track and fix the issue. PR will come soon.

Basically as the offline stored libraries were inside a project NB never asked 
for heuristics, just asked the project what about those sources. As usually the 
root project do not know of any Java stuff just ignored the request.

Even though, if the root project would be a Java project, the implementation 
was dumb enough not to know what should be done in this case.

> Gradle project properties: Support for attaching sources for project 
> libraries (in gradle.properties, or any project-versionable file)
> --------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: NETBEANS-2755
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2755
>             Project: NetBeans
>          Issue Type: Wish
>          Components: projects - Gradle
>            Reporter: Travis
>            Assignee: Laszlo Kishalmi
>            Priority: Minor
>
> I have a large multi-project build which we store in a git repo.  Some of our 
> developers use Netbeans and would like the library dependency .jar files to 
> have attached sources, so that they can conveniently review their 
> sources/javadocs during IDE code development.  Although it's possible to 
> attach sources, the attachment isn't saved inside the project properties, and 
> isn't relative to the project root directory.  So it doesn't seem possible to 
> set up our repo so that netbeans users automatically get attaches library 
> source files (where the source files are stored inside the same repo).
>  
> Perhaps it would work if I modified our build.gradle to declare the sources 
> as build dependencies, but this is bogus and undesirable.
>  
> With the older gradle plug-in, I was able to add the sources as dependencies 
> in the netbeans-init.gradle, and this worked fine.
>  
> Is it possible for the new build-in Gradle support to be enhanced to allow 
> library source attachments to be tracked, in a manner that allows both the 
> sources and their attachment settings to live inside the project's source 
> repo?
>  
> (By the way, other than a few missing features and a couple of minor 
> exceptions thrown, the new built-in gradle support is really nice, and 
> generally works well.  The existing customizability is also really good!  
> Thank you!)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-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