-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
41 lines (35 loc) · 1.12 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
plugins {
alias(libs.plugins.compose.compiler) apply false
}
buildscript {
repositories {
google()
gradlePluginPortal()
mavenCentral()
}
dependencies {
classpath(libs.gradle.buildtools)
classpath(libs.kotlin.gradlePlugin)
classpath(libs.hilt.gradlePlugin)
classpath(libs.kotlin.serialization)
classpath(libs.kotlin.ksp)
classpath(libs.protobuf.gradlePlugin)
}
}
tasks.register("clean", Delete::class) {
delete(rootProject.layout.buildDirectory)
}
// Gets a list of all modules that have androidTest sources for CI
tasks.register("printAndroidTestModules") {
doLast {
val modulesWithTests = subprojects.filter { subproject ->
val androidTestDir = file("${subproject.projectDir}/src/androidTest")
androidTestDir.exists() && androidTestDir.walkTopDown().any { it.isFile && (it.extension == "kt" || it.extension == "java") }
}.map { subproject ->
subproject.path
}
modulesWithTests.forEach { module ->
println("Module with androidTest: $module")
}
}
}