Skip to content

Commit 02daba9

Browse files
committed
Enable Antora logging output
1 parent 9115b1d commit 02daba9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gradle/plugins/antora/src/main/kotlin/junitbuild.antora-conventions.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ tasks.register<NpxTask>("antora") {
5555
description = "Runs Antora to generate a documentation site described by the playbook file."
5656

5757
command = "antora"
58-
args.addAll("--clean", "--stacktrace", "--fetch")
58+
args.addAll("--clean", "--stacktrace", "--fetch", "--log-format=pretty", "--log-level=all")
5959

6060
args.add("--to-dir")
6161
val outputDir = layout.buildDirectory.dir("antora-site")
@@ -68,7 +68,7 @@ tasks.register<NpxTask>("antora") {
6868
args.add(playbook.map { it.toRelativeString(layout.projectDirectory.asFile) })
6969
inputs.file(playbook)
7070

71-
doLast {
72-
println("Antora site built in ${outputDir.get().asFile.absoluteFile}")
71+
execOverrides {
72+
environment["IS_TTY"] = true
7373
}
7474
}

0 commit comments

Comments
 (0)