-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use `optional` configuration with variants instead of `feature` * Use `io.freefair.aggregate-javadoc` * Upgrade to Gradle `8.9` * Some other minor ode clean in Gradle configs (cherry picked from commit 4c1ac20)
- Loading branch information
1 parent
3fdf468
commit 3f45067
Showing
7 changed files
with
109 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,37 @@ | ||
node { | ||
version = '16.16.0' | ||
} | ||
|
||
antora { | ||
version = '3.2.0-alpha.2' | ||
playbook = file('src/main/antora/antora-playbook.yml') | ||
options = ['to-dir' : project.layout.buildDirectory.dir('site').get().toString(), clean: true, fetch: !project.gradle.startParameter.offline, stacktrace: true] | ||
options = [ | ||
'to-dir' : project.layout.buildDirectory.dir('site').get().toString(), | ||
clean : true, | ||
fetch : !project.gradle.startParameter.offline, | ||
stacktrace: true | ||
] | ||
dependencies = [ | ||
'@antora/atlas-extension': '1.0.0-alpha.1', | ||
'@antora/collector-extension': '1.0.0-alpha.3', | ||
'@asciidoctor/tabs': '1.0.0-beta.3', | ||
'@springio/antora-extensions': '1.4.2', | ||
'@antora/atlas-extension' : '1.0.0-alpha.1', | ||
'@antora/collector-extension' : '1.0.0-alpha.3', | ||
'@asciidoctor/tabs' : '1.0.0-beta.3', | ||
'@springio/antora-extensions' : '1.4.2', | ||
'@springio/asciidoctor-extensions': '1.0.0-alpha.8', | ||
] | ||
} | ||
|
||
tasks.named("generateAntoraYml") { | ||
asciidocAttributes = project.provider( { | ||
return ['project-version' : project.version, | ||
'revnumber': project.version, | ||
'spring-version': project.version, | ||
tasks.named('generateAntoraYml') { | ||
asciidocAttributes = project.provider({ | ||
return ['project-version': project.version, | ||
'revnumber' : project.version, | ||
'spring-version' : project.version, | ||
] | ||
} ) | ||
}) | ||
baseAntoraYmlFile = file('src/main/antora/antora.yml') | ||
} | ||
|
||
tasks.create(name: 'createAntoraPartials', type: Sync) { | ||
tasks.register('createAntoraPartials', Sync) { | ||
from { project.rootProject.tasks.filterMetricsDocsContent.outputs } | ||
into layout.buildDirectory.dir('generated-antora-resources/modules/ROOT/partials') | ||
} | ||
|
||
tasks.create('generateAntoraResources') { | ||
tasks.register('generateAntoraResources') { | ||
dependsOn 'createAntoraPartials' | ||
dependsOn 'generateAntoraYml' | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.