@@ -2,12 +2,6 @@ apply plugin: 'io.spring.convention.docs'
2
2
apply plugin : ' java'
3
3
4
4
tasks. register(" generateAntora" ) {
5
- group = " Documentation"
6
- description = " Generates antora files"
7
- dependsOn ' generateAntoraYml' , ' generateAntoraComponentVersion'
8
- }
9
-
10
- tasks. register(" generateAntoraYml" ) {
11
5
group = " Documentation"
12
6
description = " Generates the antora.yml for dynamic properties"
13
7
doLast {
@@ -30,7 +24,8 @@ tasks.register("generateAntoraYml") {
30
24
def outputFile = new File (" $buildDir /generateAntora/antora.yml" )
31
25
outputFile. getParentFile(). mkdirs()
32
26
outputFile. createNewFile()
33
- outputFile. setText(""" name: ROOT
27
+ def antoraYmlText = file(" antora.yml" ). getText()
28
+ outputFile. setText(""" $antoraYmlText
34
29
title: Spring Security
35
30
start_page: ROOT:index.adoc
36
31
asciidoc:
@@ -49,18 +44,6 @@ ${ymlVersions}
49
44
}
50
45
}
51
46
52
- tasks. register(" generateAntoraComponentVersion" ) {
53
- group = " Documentation"
54
- description = " Generates the antora.component.version file"
55
- doLast {
56
- def outputFile = new File (" $buildDir /generateAntora/antora.component.version" )
57
- outputFile. getParentFile(). mkdirs()
58
- outputFile. createNewFile()
59
- def antoraVersion = project. version. replaceAll(/ ^(\d +\.\d +)\.\d +(-\w +)?$/ , ' $1' )
60
- outputFile. setText(" $antoraVersion " )
61
- }
62
- }
63
-
64
47
65
48
66
49
dependencies {
0 commit comments