Use mavenLocal() repository instead of a local file repo

This commit is contained in:
str4d
2014-11-02 01:42:21 +00:00
parent 2cc6336bdc
commit f1e46749c3
2 changed files with 4 additions and 12 deletions

View File

@@ -46,10 +46,11 @@ Gradle will pull dependencies over the clearnet by default. To use Tor, create a
botesrc=/path/to/i2p.i2p-bote
```
5. If you want to use a local copy of the I2P Android client library, place it in a folder and add the following line to your `~/.gradle/gradle.properties`:
5. If you want to use a local copy of the I2P Android client library, install it in your local Maven repository with:
```
localFileRepoDir=/path/to/folder
cd path/to/i2p.android.base
./gradlew client:installArchives
```
### Building from the command line

View File

@@ -8,18 +8,9 @@ buildscript {
}
}
if (hasProperty('localFileRepoDir')) {
allprojects {
repositories {
flatDir {
dirs file(localFileRepoDir)
}
}
}
}
allprojects {
repositories {
mavenLocal()
mavenCentral()
}
}