-
Notifications
You must be signed in to change notification settings - Fork 77
/
settings.gradle
49 lines (44 loc) · 1.44 KB
/
settings.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
google()
}
}
dependencyResolutionManagement {
repositories {
mavenCentral()
maven { url "https://artifacts.consensys.net/public/maven/maven/" }
maven { url "https://jitpack.io" }
google()
}
}
rootProject.name = 'jvm-libp2p'
include ':libp2p'
include ':tools:schedulers'
include ':tools:simulator'
include ':examples:chatter'
include ':examples:cli-chatter'
include ':examples:pinger'
def getAndroidSdkDir() {
def localPropertiesSdkDir = null
if (file('local.properties').canRead()) {
def properties = new Properties()
properties.load(file('local.properties').newDataInputStream())
localPropertiesSdkDir = properties.getProperty('sdk.dir')
}
def androidHomeEnv = System.getenv("ANDROID_HOME")
if (localPropertiesSdkDir != null) {
return localPropertiesSdkDir
} else {
return androidHomeEnv
}
}
if (getAndroidSdkDir() != null) {
println "Build configured with Android submodules using Android SDK: ${getAndroidSdkDir()}"
include ':examples:android-chatter'
} else {
println "Build configured without Android submodules."
println " To include Android submodules define a valid SDK location with an ANDROID_HOME environment variable "
println " or by setting the sdk.dir path in your project's local properties file local.properties."
}