Skip to content

Commit

Permalink
LIBff10717 Add installArchives task which installs jars/aars in local…
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderLS committed Jul 17, 2018
1 parent 25b46f8 commit 3e10e7f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,13 @@ You can now build and push:
```bash
$ gradle clean build uploadArchives
```


Build and install on local Maven (~/.m2/repository/):

```bash
$ gradle clean build installArchives
```

### Other Properties

There are other properties which can be set:
Expand Down
13 changes: 13 additions & 0 deletions maven-push.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,19 @@ afterEvaluate { project ->
sign configurations.archives
}

task installArchives(type: Upload) {
description 'Installs the artifacts to the local Maven repository.'
configuration = configurations['archives']
repositories {
mavenDeployer {
pom.groupId = getPomGroupId()
pom.artifactId = getPomArtifactId()
pom.version = getPomVersionName()
repository url: "file://${System.properties['user.home']}/.m2/repository"
}
}
}

task androidJavadocs(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
Expand Down

0 comments on commit 3e10e7f

Please sign in to comment.