-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
44 lines (38 loc) · 1.23 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
description = "Transactional Outbox"
plugins {
kotlin("jvm")
id("org.jetbrains.dokka") version "1.9.0"
id("com.vanniktech.maven.publish") version "0.25.3"
}
subprojects {
apply(plugin = "com.vanniktech.maven.publish")
signing {
// This is required to allow using the signing key via the CI in ASCII armored format.
// https://docs.gradle.org/current/userguide/signing_plugin.html#sec:in-memory-keys
if (!project.gradle.startParameter.taskNames.any {
it.contains("publishToMavenLocal") ||
it.contains("publishMavenPublicationToMavenLocal")
}) {
val signingKey: String? by project
val signingPassword: String? by project
useInMemoryPgpKeys(signingKey, signingPassword)
}
}
}
repositories {
mavenCentral()
}
tasks.dokkaHtmlMultiModule {
moduleName.set("Transactional Outbox")
doLast { // Replace the generic "All modules" titles with "Transactional Outbox"
val indexFile = file(outputDirectory.get().asFile.resolve("index.html"))
if (indexFile.exists()) {
val content = indexFile.readText()
val modifiedContent = content.replace(
Regex("All modules"),
"Transactional Outbox"
)
indexFile.writeText(modifiedContent)
}
}
}