-
Notifications
You must be signed in to change notification settings - Fork 393
/
build.gradle.kts
51 lines (44 loc) · 1.46 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
import org.jetbrains.gradle.ext.settings
import org.jetbrains.gradle.ext.taskTriggers
plugins {
id("com.android.application") version "8.7.2" apply false
id("com.android.library") version "8.7.2" apply false
id("org.jetbrains.kotlin.android") version "2.0.21" apply false
id("org.ec4j.editorconfig") version "0.1.0" apply false
id("org.jetbrains.gradle.plugin.idea-ext") version "1.1.9" apply true
}
// External project configuration start
// Configure and automatically generate AAR of the below mentioned external
// projects using a custom task in order to let Android Studio work properly.
// MUST BE RUN MANUALLY ON CLI COMPILATION
val externalProjects = listOf(
project(":external:calendar"),
project(":external:chips"),
project(":external:colorpicker"),
project(":external:timezonepicker")
)
configure(externalProjects) {
apply {
from("../configuration/common.gradle")
}
}
tasks.register("aarGen") {
description = "Generates AAR from the external projects for Etar-Calendar"
val aarTasks = arrayOf(
":external:calendar:copyAAR",
":external:chips:copyAAR",
":external:colorpicker:copyAAR",
":external:timezonepicker:copyAAR"
)
dependsOn(*aarTasks)
}
idea.project.settings {
taskTriggers {
afterSync(tasks.named("aarGen"))
}
}
// External project configuration end
tasks.register<Delete>("clean") {
delete(rootProject.layout.buildDirectory)
delete("app/libs")
}