-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbuild.gradle.kts
53 lines (47 loc) · 1.55 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
import java.time.Duration
import org.jetbrains.dokka.gradle.DokkaTaskPartial
plugins {
kotlin("android") apply false
kotlin("jvm") apply false
alias(libs.plugins.google.ksp) apply false
id("com.android.library") apply false
alias(libs.plugins.nexus.publish)
alias(libs.plugins.dokka)
alias(libs.plugins.kover)
}
group = "io.embrace"
version = project.version
nexusPublishing {
repositories {
sonatype {
username = System.getenv("SONATYPE_USERNAME")
password = System.getenv("SONATYPE_PASSWORD")
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
}
}
transitionCheckOptions {
maxRetries.set(60)
delayBetween.set(Duration.ofSeconds(20))
}
connectTimeout.set(Duration.ofMinutes(15))
clientTimeout.set(Duration.ofMinutes(15))
}
subprojects {
if (project.name == "embrace-android-sdk" || project.name == "embrace-android-api") {
apply(plugin = "org.jetbrains.dokka")
}
tasks.withType<DokkaTaskPartial>().configureEach {
dokkaSourceSets.configureEach {
perPackageOption {
skipDeprecated.set(false)
reportUndocumented.set(true) // Emit warnings about not documented members
includeNonPublic.set(false)
// Suppress files in the internal package
matchingRegex.set(".*.internal.*?")
suppress.set(true)
}
suppressObviousFunctions.set(true)
noAndroidSdkLink.set(false)
}
}
}