-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
34 lines (30 loc) · 937 Bytes
/
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
import cloud.playio.gradle.antora.tasks.AntoraCopyTask
import cloud.playio.gradle.generator.docgen.AsciidocGenTask
plugins {
id(PlayioPlugin.antora)
id(PlayioPlugin.docgen)
}
dependencies {
compileOnly(project(":core"))
}
documentation {
val extensions = (gradle as ExtensionAware).extensions
val mainProject = extensions["BASE_NAME"] as String
antora {
asciiAttributes.set(
mapOf(
"project-group" to project.group,
"project-name" to mainProject,
"project-version" to project.version
)
)
javadocTitle.set("${project.ext["title"]} ${project.version} API")
javadocProjects.set((extensions["PROJECT_POOL"] as Map<*, Array<String>>)[mainProject]!!.map(project::project))
}
}
tasks {
named<AntoraCopyTask>("antoraPartials") {
from(withType<AsciidocGenTask>())
include("*.adoc")
}
}