forked from joreilly/Confetti
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
42 lines (38 loc) · 1.3 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
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}
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",
)
}
allprojects {
configurations.all {
resolutionStrategy.dependencySubstitution {
substitute(module("org.jetbrains.compose.compiler:compiler")).apply {
using(module("androidx.compose.compiler:compiler:${libs.versions.compose.compiler.get()}"))
}
}
}
}