1
+ import org.asciidoctor.gradle.base.AsciidoctorAttributeProvider
1
2
import org.asciidoctor.gradle.jvm.AbstractAsciidoctorTask
2
3
import org.gradle.api.tasks.PathSensitivity.RELATIVE
3
4
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet
@@ -190,7 +191,8 @@ tasks {
190
191
// Temporary workaround for https://github.com/asciidoctor/asciidoctor-gradle-plugin/issues/599
191
192
inputs.dir(sourceDir).withPropertyName(" sourceDir" ).withPathSensitivity(RELATIVE )
192
193
193
- attributes(mapOf (
194
+ attributeProviders + = AsciidoctorAttributeProvider {
195
+ mapOf (
194
196
" jupiter-version" to version,
195
197
" platform-version" to project.property(" platformVersion" ),
196
198
" vintage-version" to project.property(" vintageVersion" ),
@@ -202,10 +204,10 @@ tasks {
202
204
" release-branch" to releaseBranch,
203
205
" docs-version" to docsVersion,
204
206
" revnumber" to version,
205
- " consoleLauncherOptionsFile" to consoleLauncherOptionsFile,
206
- " experimentalApisTableFile" to experimentalApisTableFile,
207
- " deprecatedApisTableFile" to deprecatedApisTableFile,
208
- " standaloneConsoleLauncherShadowedArtifactsFile" to standaloneConsoleLauncherShadowedArtifactsFile,
207
+ " consoleLauncherOptionsFile" to consoleLauncherOptionsFile.get() ,
208
+ " experimentalApisTableFile" to experimentalApisTableFile.get() ,
209
+ " deprecatedApisTableFile" to deprecatedApisTableFile.get() ,
210
+ " standaloneConsoleLauncherShadowedArtifactsFile" to standaloneConsoleLauncherShadowedArtifactsFile.get() ,
209
211
" outdir" to outputDir.absolutePath,
210
212
" source-highlighter" to " rouge" ,
211
213
" tabsize" to " 4" ,
@@ -215,7 +217,8 @@ tasks {
215
217
" idprefix" to " " ,
216
218
" idseparator" to " -" ,
217
219
" jdk-javadoc-base-url" to jdkJavadocBaseUrl
218
- ))
220
+ )
221
+ }
219
222
220
223
sourceSets[" test" ].apply {
221
224
attributes(mapOf (
0 commit comments