Skip to content

Commit

Permalink
Added installArchives gradle task to install to local maven repository
Browse files Browse the repository at this point in the history
  • Loading branch information
smarek committed Apr 2, 2015
1 parent be277dc commit 8e3ee55
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions maven_push.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,20 @@ afterEvaluate { project ->
}
}

task installArchives(type: Upload) {
description "Installs the artifacts to the local Maven repository."
configuration = configurations['archives']
repositories {
mavenDeployer {
pom.groupId = GROUP
pom.artifactId = POM_ARTIFACT_ID
pom.version = VERSION_NAME

repository url: "file://${System.properties['user.home']}/.m2/repository"
}
}
}

signing {
required { isReleaseBuild() && gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
Expand Down

0 comments on commit 8e3ee55

Please sign in to comment.