forked from gyf-dev/Cactus
-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.gradle
33 lines (29 loc) · 905 Bytes
/
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
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
Properties properties = new Properties()
File propertiesFile = new File(rootProject.projectDir, 'local.properties')
if (propertiesFile.exists()) {
InputStream inputStream = propertiesFile.newDataInputStream()
properties.load(inputStream)
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven {
url 'https://maven.pkg.github.com/kuloud/Cactus'
credentials {
username = properties.getProperty("gpr.user") ?: System.getenv("GPR_USER")
password = properties.getProperty("gpr.key") ?: System.getenv("GPR_API_KEY")
}
}
}
}
include ':cactus-sample', ':cactus'
rootProject.name='Cactus'