/deps

Resolve transitive dependencies

Primary LanguageKotlinApache License 2.0Apache-2.0

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