Skip to content

arturbosch/deps

Repository files navigation

deps

Build Status CodeFactor Download

Leverages maven-resolver to resolve transitive dependencies.

Example

@Test
fun `resolves junit and the transitive dependency hamcrest`() {
    val deps = Deps()
    val artifact = Artifact("junit:junit:4.12")

    val paths: List<File> = deps.resolve(artifact)

    assertTrue { paths.includes("junit-4.12.jar") }
    assertTrue { paths.includes("hamcrest-core-1.3.jar") }
}

Getting started

with Gradle

repositories {
    maven { url "https://dl.bintray.com/arturbosch/generic" }
}

implementation("io.gitlab.arturbosch:deps:[version]")

with Maven

See https://bintray.com/arturbosch/generic/deps# -> SET ME UP!

<dependency>
    <groupId>io.gitlab.arturbosch</groupId>
    <artifactId>deps</artifactId>
    <version>[version]</version>
</dependency>

with downloading this repo

  • git clone https://github.com/arturbosch/deps
  • cd deps
  • gradle build publishToMavenLocal

About

Resolve transitive dependencies

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages