Skip to content

Commit

Permalink
adding task uploadArchivesLocal to deploy artifacts to local maven
Browse files Browse the repository at this point in the history
  • Loading branch information
Pozzoooo committed May 19, 2020
1 parent 3525f5f commit c3aa5ac
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions gradle/gradle-mvn-push.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,16 @@ afterEvaluate { project ->
archives javadocJar
}
}

task uploadArchivesLocal(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"
}
}
}

0 comments on commit c3aa5ac

Please sign in to comment.