-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
build.gradle
41 lines (37 loc) · 1.4 KB
/
build.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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
Properties properties = new Properties()
File localProps = new File(rootDir.absolutePath, "local.properties")
if (localProps.exists()) {
properties.load(localProps.newDataInputStream())
println "Authenticating user: " + properties.getProperty("gpr.user")
} else {
println "local.properties not found, please create it next to build.gradle and set gpr.user and gpr.key (Create a GitHub package read only + non expiration token at https://github.com/settings/tokens)\n" +
"Or set GITHUB_USER and GITHUB_TOKEN environment variables"
}
buildscript {
ext.kotlin_version = '1.3.50'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
google()
mavenCentral()
maven {
url = uri("https://maven.pkg.github.com/trustwallet/wallet-core")
credentials {
username = properties.getProperty("gpr.user") as String?: System.getenv("GITHUB_USER")
password = properties.getProperty("gpr.key") as String?: System.getenv("GITHUB_TOKEN")
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}