-
Notifications
You must be signed in to change notification settings - Fork 30
/
build.gradle.kts
39 lines (34 loc) · 1.17 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
import com.diffplug.gradle.spotless.SpotlessExtension
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
alias(libs.plugins.kotlin.multiplaform) apply false
alias(libs.plugins.kotlinx.serialization) apply false
alias(libs.plugins.android) apply false
alias(libs.plugins.maven.publish) apply false
alias(libs.plugins.spotless) apply false
}
subprojects {
apply(plugin = "com.diffplug.spotless")
configure<SpotlessExtension> {
kotlin {
target("**/*.kt")
trimTrailingWhitespace()
endWithNewline()
}
}
}
tasks.withType<Test> {
maxParallelForks = Runtime.getRuntime().availableProcessors().minus(1).coerceAtLeast(1)
}
tasks.register<Delete>("clean") {
delete(rootProject.buildDir)
}
tasks.register("runDebugUnitTest") {
dependsOn(":instantsearch-core:jvmTest")
dependsOn(":instantsearch:testDebugUnitTest")
dependsOn(":instantsearch-insights:testDebugUnitTest")
dependsOn(":instantsearch-compose:testDebugUnitTest")
dependsOn(":extensions:android-paging3:testDebugUnitTest")
dependsOn(":extensions:android-loading:testDebugUnitTest")
dependsOn(":extensions:coroutines-extensions:jvmTest")
}