Skip to content

Instantly share code, notes, and snippets.

@vicly
Last active September 15, 2017 03:24
Show Gist options
  • Save vicly/29c53b86e8930439b23508e023b90bb0 to your computer and use it in GitHub Desktop.
Save vicly/29c53b86e8930439b23508e023b90bb0 to your computer and use it in GitHub Desktop.
[Gradle intall to local maven repo] install jar to local maven cache #Gradle

In api/build.gradle

apply plugin: "maven"

group = "foo"
version = "1.0"

In api-impl/build.gradle

repositories {
    mavenLocal()
}

dependencies {
    compile "foo:api:1.0"
}

Run command

$api> gradle install

$api-impl> gradle build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment