-
Notifications
You must be signed in to change notification settings - Fork 93
/
build.gradle.kts
34 lines (31 loc) · 1010 Bytes
/
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
plugins {
id("base")
}
buildscript {
dependencies {
classpath("build-logic:build-logic")
}
}
tasks.register("setupCredentials") {
fun File.writeEnv(name: String) {
parentFile.mkdirs()
writeText(System.getenv(name))
}
doLast {
if (System.getenv("CI")?.isNotEmpty() == true) {
println("setting up google services...")
file("backend/datastore/src/jvmMain/resources/gcp_service_account_key.json").writeEnv("GOOGLE_SERVICES_JSON")
file("backend/service-graphql/src/main/resources/firebase_service_account_key.json").writeEnv("FIREBASE_SERVICES_JSON")
file("backend/service-graphql/src/main/resources/apollo.key").writeEnv("APOLLO_KEY")
}
}
}
tasks.register("quickChecks") {
dependsOn(
":backend:service-graphql:build",
":backend:service-import:build",
":androidApp:assembleDebug",
":wearApp:assembleDebug",
":wearApp:assembleDebugAndroidTest",
)
}