-
Notifications
You must be signed in to change notification settings - Fork 22
/
build.gradle.kts
50 lines (45 loc) · 1.43 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
import de.fabmax.kool.comment
plugins {
id("kool.androidlib-conventions") apply false
id("kool.lib-conventions") apply false
id("kool.publish-conventions") apply false
}
allprojects {
group = "de.fabmax.kool"
version = "0.17.0-SNAPSHOT"
repositories {
mavenLocal()
google()
mavenCentral()
}
}
task("disableAndroidPlatform") {
group = "build config"
doFirst {
listOf("kool-core", "kool-editor-model").forEach { subProj ->
project.file("${subProj}/build.gradle.kts").comment {
commentLines("alias(libs.plugins.androidLibrary)")
commentBlocks("android")
}
}
rootProject.file("buildSrc/src/main/kotlin/kool.androidlib-conventions.gradle.kts").comment {
commentLines("id(\"com.android.library\")")
commentBlocks("android")
}
}
}
task("enableAndroidPlatform") {
group = "build config"
doFirst {
listOf("kool-core", "kool-editor-model").forEach { subProj ->
project.file("$subProj/build.gradle.kts").comment {
uncommentLines("alias(libs.plugins.androidLibrary)")
uncommentBlocks("android")
}
}
rootProject.file("buildSrc/src/main/kotlin/kool.androidlib-conventions.gradle.kts").comment {
uncommentLines("id(\"com.android.library\")")
uncommentBlocks("android")
}
}
}