Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Investigate Gradle Tooling API support #85

Copy link
Copy link
Open
@fwcd

Description

@fwcd
Issue body actions

The current solution to find the dependencies of a module/project invokes Gradle from the command line and parses the output:

https://github.com/fwcd/KotlinLanguageServer/blob/322594f491369f51fdda33295101098d81d5bf3d/src/main/kotlin/org/javacs/kt/classpath/GradleDependencyResolver.kt#L54-L62

A more elegant solution, however, would be to have direct, programmatic access to Gradle's APIs in order to fetch a list of dependency JARs. Both Eclipse and IntelliJ IDEA have custom project models inside the Gradle API that fit their specific use cases, but which can be used externally too (EclipseModel and IdeaModel). Unfortunately, these do have some limitations regarding Android support, which is why the current solution involves a custom Gradle script that is invoked as described above. Instead, a custom model could be built using the Tooling API.

Resources:

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependency resolutionRelated to the project dependency/standard library resolverRelated to the project dependency/standard library resolverenhancementNew feature or requestNew feature or requestexperimentalThe feature is experimental and might be revokedThe feature is experimental and might be revokedgradleRelated to the language server's support for Gradle projectsRelated to the language server's support for Gradle projects

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.