-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
35 lines (28 loc) · 1.17 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
plugins {
// this is necessary to avoid the plugins to be loaded multiple times
// in each subproject's classloader
alias(libs.plugins.androidApplication) apply false
alias(libs.plugins.androidLibrary) apply false
alias(libs.plugins.jetbrainsCompose) apply false
alias(libs.plugins.compose.compiler) apply false
alias(libs.plugins.kotlinMultiplatform) apply false
alias(libs.plugins.kotlinxSerialization) apply false
alias(libs.plugins.realm) apply false
alias(libs.plugins.mavenPublish)
}
// https://github.com/gradle/gradle/issues/22793
val lib = libs
val publishVersion = properties["publish.versions"] as String
val publishGroup = properties["publish.group"] as String
subprojects {
apply(plugin = lib.plugins.kotlinMultiplatform.get().pluginId)
apply(plugin = lib.plugins.kotlinxSerialization.get().pluginId)
// 'krosai-sample' used androidApplication plugin,
// Publishing of application and test variants is not supported
if (name != ("krosai-sample")) {
apply(plugin = lib.plugins.mavenPublish.get().pluginId)
mavenPublishing {
coordinates(publishGroup, name, publishVersion)
}
}
}