-
Notifications
You must be signed in to change notification settings - Fork 207
/
build.gradle.kts
116 lines (108 loc) · 4.67 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
`kotlin-dsl`
}
group = "io.github.droidkaigi.confsched2023.buildlogic"
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
// If we use jvmToolchain, we need to install JDK 11
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions.jvmTarget = "11"
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
dependencies {
implementation(libs.bundles.plugins)
// https://github.com/google/dagger/issues/3068#issuecomment-1470534930
implementation(libs.javaPoet)
}
gradlePlugin {
plugins {
// Primitives
register("androidApplication") {
id = "droidkaigi.primitive.androidapplication"
implementationClass = "io.github.droidkaigi.confsched2023.primitive.AndroidApplicationPlugin"
}
register("android") {
id = "droidkaigi.primitive.android"
implementationClass = "io.github.droidkaigi.confsched2023.primitive.AndroidPlugin"
}
register("androidKotlin") {
id = "droidkaigi.primitive.android.kotlin"
implementationClass = "io.github.droidkaigi.confsched2023.primitive.AndroidKotlinPlugin"
}
register("androidCompose") {
id = "droidkaigi.primitive.android.compose"
implementationClass = "io.github.droidkaigi.confsched2023.primitive.AndroidComposePlugin"
}
register("androidHilt") {
id = "droidkaigi.primitive.android.hilt"
implementationClass = "io.github.droidkaigi.confsched2023.primitive.AndroidHiltPlugin"
}
register("androidCrashlytics") {
id = "droidkaigi.primitive.android.crashlytics"
implementationClass = "io.github.droidkaigi.confsched2023.primitive.AndroidCrashlyticsPlugin"
}
register("androidFirebase") {
id = "droidkaigi.primitive.android.firebase"
implementationClass = "io.github.droidkaigi.confsched2023.primitive.AndroidFirebasePlugin"
}
register("androidRoborazzi") {
id = "droidkaigi.primitive.android.roborazzi"
implementationClass = "io.github.droidkaigi.confsched2023.primitive.AndroidRoborazziPlugin"
}
register("kotlinMpp") {
id = "droidkaigi.primitive.kmp"
implementationClass = "io.github.droidkaigi.confsched2023.primitive.KmpPlugin"
}
register("kotlinMppIos") {
id = "droidkaigi.primitive.kmp.ios"
implementationClass = "io.github.droidkaigi.confsched2023.primitive.KmpIosPlugin"
}
register("kotlinMppAndroid") {
id = "droidkaigi.primitive.kmp.android"
implementationClass = "io.github.droidkaigi.confsched2023.primitive.KmpAndroidPlugin"
}
register("kotlinMppCompose") {
id = "droidkaigi.primitive.kmp.compose"
implementationClass = "io.github.droidkaigi.confsched2023.primitive.KmpComposePlugin"
}
register("kotlinMppKtorfit") {
id = "droidkaigi.primitive.kmp.ktorfit"
implementationClass = "io.github.droidkaigi.confsched2023.primitive.KmpKtorfitPlugin"
}
register("kotlinMppAndroidHilt") {
id = "droidkaigi.primitive.kmp.android.hilt"
implementationClass = "io.github.droidkaigi.confsched2023.primitive.KmpAndroidHiltPlugin"
}
register("kotlinMppAndroidShowkase") {
id = "droidkaigi.primitive.kmp.android.showkase"
implementationClass = "io.github.droidkaigi.confsched2023.primitive.KmpAndroidShowkasePlugin"
}
register("kotlinMppKotlinSerialization") {
id = "droidkaigi.primitive.kmp.serialization"
implementationClass = "io.github.droidkaigi.confsched2023.primitive.KotlinSerializationPlugin"
}
register("koverEntryPoint") {
id = "droidkaigi.primitive.kover.entrypoint"
implementationClass = "io.github.droidkaigi.confsched2023.primitive.KoverEntryPointPlugin"
}
register("detekt") {
id = "droidkaigi.primitive.detekt"
implementationClass = "io.github.droidkaigi.confsched2023.primitive.DetektPlugin"
}
register("oss-licenses") {
id = "droidkaigi.primitive.android.osslicenses"
implementationClass = "io.github.droidkaigi.confsched2023.primitive.OssLicensesPlugin"
}
// Conventions
register("androidFeature") {
id = "droidkaigi.convention.androidfeature"
implementationClass = "io.github.droidkaigi.confsched2023.convention.AndroidFeaturePlugin"
}
}
}