-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathbuild.gradle.kts
46 lines (38 loc) · 1.2 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
@file:Suppress("DSL_SCOPE_VIOLATION") // https://github.com/gradle/gradle/issues/22797
buildscript {
dependencies {
val googleServicesVersion = libs.versions.google.services.get()
classpath("com.google.gms:google-services:$googleServicesVersion")
}
}
plugins {
fun classpath(notation: Provider<PluginDependency>) = alias(notation) apply false
with(libs.plugins) {
classpath(android.application)
classpath(android.library)
classpath(apollo.graphql)
classpath(cash.sqldelight)
classpath(diffplug.spotless)
classpath(google.services)
with(kotlin) {
classpath(compose)
classpath(multiplatform)
classpath(serialization)
}
alias(dependency.analysis)
alias(gradle.doctor)
alias(kotlinx.kover)
}
}
doctor {
allowBuildingAllAndroidAppsSimultaneously.set(true)
disallowCleanTaskDependencies.set(false)
javaHome { failOnError.set(false) }
}
val targetProject = project
subprojects {
pluginManager.withPlugin("io.ashdavies.kotlin") {
project.apply(plugin = "org.jetbrains.kotlinx.kover")
targetProject.dependencies.kover(project)
}
}