Skip to content

Commit e0d460e

Browse files
committed
Added Gradle task installArchives, to install into local Maven repository
1 parent aff250d commit e0d460e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

maven_push.gradle

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,20 @@ afterEvaluate { project ->
8787
}
8888
}
8989

90+
task installArchives(type: Upload) {
91+
description "Installs the artifacts to the local Maven repository."
92+
configuration = configurations['archives']
93+
repositories {
94+
mavenDeployer {
95+
pom.groupId = GROUP
96+
pom.artifactId = POM_ARTIFACT_ID
97+
pom.version = VERSION_NAME
98+
99+
repository url: "file://${System.properties['user.home']}/.m2/repository"
100+
}
101+
}
102+
}
103+
90104
signing {
91105
required { isReleaseBuild() && gradle.taskGraph.hasTask("uploadArchives") }
92106
sign configurations.archives

0 commit comments

Comments
 (0)