On 14.03.23 18:17, Neil C Smith wrote:
On Tue, 14 Mar 2023 at 17:01, László Kishalmi <laszlo.kisha...@gmail.com> wrote:
Also one day the Gradle plugin may be smart enough to use that Maven index for 
its own good.
Like offering a dependency to add when you add an import statement for a 
class...
That would be great.  I started looking a while back at something
similar, and I also want to use it in a platform application for
completing package URLs - https://github.com/package-url/purl-spec
OTOH, maybe I'll just use the central REST API. :-)

be warned that the rest API has weird fluctuating latencies, there are also features missing like a prefix search for certain fields which is important for completion, you can play with it around here:

https://github.com/apache/netbeans/pull/4971

It has extra logging enabled. I pasted some logs into the PR.

(^^ this PR restores the old functionality of adding dependencies by class name query in maven projects for dependencies which are not in your .m2 folder)


if we decide to merge a version of this PR one day, the advantage is that nothing else would need updates, since it is implemented in the maven indexer itself and merges local results with remote (although that class needs some refactoring but that is another topic).

Lets say gradle support would want to use index queries too, it could simply use the indexer and some responses will be instantly served from the local lucene index, others might require a longer roundtrip via REST API.


hints like this one here:

https://github.com/apache/netbeans/pull/5009

should be already possible to implement today for gradle projects.


-mbien



Best wishes,

Neil

---------------------------------------------------------------------
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