-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle.kts
45 lines (40 loc) · 1.41 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
buildscript {
extra.apply {
set("kotlin", "1.8.0")
}
repositories {
google()
mavenCentral()
maven("https://kotlin.bintray.com/kotlinx/")
maven("https://storage.googleapis.com/r8-releases/raw")
}
dependencies {
classpath("com.android.tools.build:gradle:8.5.1")
classpath(kotlin("gradle-plugin", version = project.extra["kotlin"] as String?))
classpath("com.google.protobuf:protobuf-gradle-plugin:0.9.1")
}
}
allprojects {
repositories {
google()
mavenCentral()
maven("https://kotlin.bintray.com/kotlinx/")
}
}
tasks.register<Delete>("clean").configure {
delete(rootProject.buildDir)
}
val secretsPropertiesFile = rootProject.file("secrets.properties")
val secretProperties by project.extra(java.util.Properties())
if (secretsPropertiesFile.exists()) {
secretProperties.load(java.io.FileInputStream(secretsPropertiesFile))
} else {
System.getenv("SIGNING_KEYSTORE_FILE")
?.let { secretProperties.setProperty("signing_keystore_file", it) }
System.getenv("SIGNING_KEYSTORE_PASSWORD")
?.let { secretProperties.setProperty("signing_keystore_password", it) }
System.getenv("SIGNING_KEY_ALIAS")
?.let { secretProperties.setProperty("signing_key_alias", it) }
System.getenv("SIGNING_KEY_PASSWORD")
?.let { secretProperties.setProperty("signing_key_password", it) }
}