smithy-lang / smithy-language-server

A Language Server Protocol implementation for the Smithy IDL
https://smithy.io
Apache License 2.0
33 stars 18 forks source link

Use smithy cli maven resolution to support SMITHY_MAVEN_REPOS and build-envars #113

Closed srchase closed 1 year ago

srchase commented 1 year ago

This PR updates the Language Server to resolve Maven dependencies using DependencyResolver from smithy-cli, including its MavenDependencyResolver and FileCacheResolver. By using these resolvers, Coursier can be removed since its Fetch API is no longer needed.

This change also updates the Language Server to respect the SMITHY_MAVEN_REPOS environment variable. httpCredentials can now also be set on repositories in smithy-build.json, including the use of build-envars.

Resolves https://github.com/awslabs/smithy-language-server/issues/107

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.