https://github.com/cosmic-ide/dependencyresolver
A powerful dependency resolver for maven repositories.
https://github.com/cosmic-ide/dependencyresolver
dependency-parser dependency-parsing dependency-resolution dependency-resolver hacktoberfest
Last synced: about 18 hours ago
JSON representation
A powerful dependency resolver for maven repositories.
- Host: GitHub
- URL: https://github.com/cosmic-ide/dependencyresolver
- Owner: Cosmic-Ide
- License: gpl-3.0
- Created: 2023-02-26T16:48:10.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-13T07:17:43.000Z (14 days ago)
- Last Synced: 2025-06-13T08:27:32.820Z (14 days ago)
- Topics: dependency-parser, dependency-parsing, dependency-resolution, dependency-resolver, hacktoberfest
- Language: Kotlin
- Homepage:
- Size: 166 KB
- Stars: 9
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DependencyResolver
Provides a simple API to check for, and download artifacts from Maven Central, Google Maven and Jitpack.
It was created as a lightweight alternative to Eclipse aether for Android. But this would work on any OS.It is recommended to use snapshot builds from jitpack.
For a proper example, checkout Main.kt.
For checking if an artifact exists (in the above mentioned repositories), you can simply do
```kt
val groupId = "com.squareup.retrofit2"
val artifactId = "retrofit"
val version = "2.9.0"val artifact = getArtifact(groupId, artifactId, version)
val repository = artifact.repository
if (repository != null) {
println("Artifact exists in ${ repository.getName() }")
} else {
println("Cannot find artifact.")
}
```NOTE: If you only want to download the artifact, you can use the `downloadTo` method instead.
For downloading an artifact with all of its dependencies, you can do
```kt
val output = File("")
artifact.downloadArtifact(output)
```