-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsettings.gradle
34 lines (32 loc) · 1.17 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
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
Properties properties = new Properties()
File localProps = new File(rootDir.absolutePath, "local.properties")
if (localProps.exists()) {
properties.load(localProps.newDataInputStream())
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenLocal()
google()
mavenCentral()
maven {
url = uri("https://maven.pkg.github.com/itwin/mobile-native-android")
credentials {
username = properties.getProperty("gpr.user") ?: System.getenv("USERNAME") ?: "token"
password = properties.getProperty("gpr.key") ?: System.getenv("TOKEN")
}
}
}
}
include ':mobile-sdk'