-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbuild.gradle.kts
62 lines (58 loc) · 1.75 KB
/
build.gradle.kts
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
50
51
52
53
54
55
56
57
58
59
60
61
62
buildscript {
repositories {
gradlePluginPortal()
google()
mavenCentral()
mavenLocal()
}
dependencies {
classpath(libs.kotlin.gradle.plugin)
classpath(libs.gradle)
classpath(libs.hilt.android.gradle.plugin)
classpath(libs.kotlin.serialization)
}
}
plugins {
alias(libs.plugins.ksp) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlin) apply false
alias(libs.plugins.google.services) apply false
alias(libs.plugins.room) apply false
alias(libs.plugins.compose.compiler) apply false
}
allprojects {
repositories {
val propFile = File(rootDir.absolutePath, "local.properties")
var properties = java.util.Properties()
if (propFile.exists()) {
properties = properties.apply {
propFile.inputStream().use { fis ->
load(fis)
}
}
}
val gprUsername = properties["gpr.username"] as? String ?: System.getenv("GPR_USERNAME")
val gprToken = properties["gpr.token"] as? String ?: System.getenv("GPR_TOKEN")
google()
mavenCentral()
mavenLocal()
maven { url = uri("https://jitpack.io") }
maven {
url = uri("https://maven.pkg.github.com/trustwallet/wallet-core")
credentials {
username = gprUsername
password = gprToken
}
}
maven {
url = uri("https://maven.pkg.github.com/gemwalletcom/core")
credentials {
username = gprUsername
password = gprToken
}
}
}
}
tasks.register("clean", Delete::class) {
delete(layout.buildDirectory)
}