-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
71 lines (65 loc) · 1.89 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
@file:Suppress("UnstableApiUsage")
buildscript {
repositories {
mavenCentral()
google {
mavenContent {
includeGroupAndSubgroups("androidx")
includeGroupAndSubgroups("com.android")
includeGroupAndSubgroups("com.google")
}
}
gradlePluginPortal()
maven("https://maven.aliyun.com/repository/public")
maven("https://maven.aliyun.com/repository/google")
maven("https://maven.aliyun.com/repository/gradle-plugin")
}
dependencies {
classpath(libs.redwood.gradle.plugin)
classpath(moko.resources.gradle.plugin)
}
}
plugins {
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlin.cocoapods) apply false
// alias(libs.plugins.jetbrains.compose) apply false
alias(libs.plugins.compose.compiler) apply false
id("com.jithub.gradle.build-logic")
}
allprojects {
repositories {
mavenCentral()
google {
mavenContent {
includeGroupAndSubgroups("androidx")
includeGroupAndSubgroups("com.android")
includeGroupAndSubgroups("com.google")
}
}
maven("https://maven.aliyun.com/repository/public")
maven("https://maven.aliyun.com/repository/google")
maven("https://jitpack.io")
}
apply(plugin = "com.jithub.gradle.build-support")
}
subprojects {
afterEvaluate {
tasks.withType<JavaCompile> {
dependsOn(tasks.getByName("spotlessApply"))
}
}
}
gradle.taskGraph.whenReady {
tasks.forEach {
/* Encountering the “Unable to make progress running work” Error in Gradle? */
// gradle.startParameter.excludedTaskNames.addAll(listOf(":build-logic:convention:testClasses"))
if (it.name.contains(":testClasses", ignoreCase = false)) {
it.enabled = false
}
}
}
tasks.getByName("clean") {
delete(rootProject.layout.buildDirectory)
}