Skip to content

Instantly share code, notes, and snippets.

@briangriffey
Last active December 22, 2015 20:49
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save briangriffey/6528687 to your computer and use it in GitHub Desktop.
Save briangriffey/6528687 to your computer and use it in GitHub Desktop.
Simple addition to any gradle file to install to your local repository
uploadArchives {
repositories {
mavenDeployer {
repository url: 'file://' + new File(System.getProperty('user.home'), '.m2/repository').absolutePath
pom.artifactId = "yourartifactname"
pom.groupId = "com.yourgroup"
pom.version = "1.0.0-SNAPSHOT"
}
}
}
task install(dependsOn: uploadArchives)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment