-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
75 lines (67 loc) · 2.11 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
plugins {
`maven-publish`
//trick: for the same plugin versions in all sub-modules
alias(libs.plugins.androidLibrary).apply(false)
alias(libs.plugins.kotlinMultiplatform).apply(false)
alias(libs.plugins.kover)
alias(libs.plugins.com.linecorp.build.recipe)
alias(libs.plugins.build.dokka.plugin)
alias(libs.plugins.kotlinx.binary.validator) apply false
id("com.tddworks.central-portal-publisher") version "0.0.5"
}
sonatypePortalPublisher {
settings {
autoPublish = false
aggregation = true
}
}
dependencies {
kover(projects.openaiClient.openaiClientCore)
kover(projects.anthropicClient.anthropicClientCore)
kover(projects.openaiGateway.openaiGatewayCore)
kover(projects.ollamaClient.ollamaClientCore)
kover(projects.common)
}
val autoVersion = project.property(
if (project.hasProperty("AUTO_VERSION")) {
"AUTO_VERSION"
} else {
"LIBRARY_VERSION"
}
) as String
subprojects {
/**
* Working with runtime properties
* https://docs.gradle.org/current/userguide/kotlin_dsl.html
*/
val GROUP: String by project
group = GROUP
version = autoVersion
apply(plugin = rootProject.libs.plugins.kotlinMultiplatform.get().pluginId)
apply(plugin = rootProject.libs.plugins.build.dokka.plugin.get().pluginId)
}
kover {
reports {
filters {
excludes {
classes(
"com.tddworks.**.*\$*$*", // Lambda functions like - LemonSqueezyLicenseApi$activeLicense$activationResult$1
"com.tddworks.**.*\$Companion", // Lambda functions like - LemonSqueezyLicenseApi$activeLicense$activationResult$1
"*.*\$\$serializer", // Kotlinx serializer)
)
// inheritedFrom("org.koin.core.component.KoinComponent")
// annotatedBy("kotlinx.serialization.Serializable")
}
includes {
classes("com.tddworks.*")
}
}
verify {
rule {
bound {
minValue = 86
}
}
}
}
}