From 6d2ae1db7ac23df799400f5a1dd000d61ba41ca6 Mon Sep 17 00:00:00 2001 From: Marc Philipp Date: Mon, 15 Jul 2024 11:18:45 +0200 Subject: [PATCH] Remove execution-time reference to project To resolve deprecation warning --- documentation/documentation.gradle.kts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/documentation/documentation.gradle.kts b/documentation/documentation.gradle.kts index 01662ef9e7d1..2f8bdb819773 100644 --- a/documentation/documentation.gradle.kts +++ b/documentation/documentation.gradle.kts @@ -266,11 +266,14 @@ tasks { // Temporary workaround for https://github.com/asciidoctor/asciidoctor-gradle-plugin/issues/599 inputs.dir(sourceDir).withPropertyName("sourceDir").withPathSensitivity(RELATIVE) + val platformVersion: String by project + val vintageVersion: String by project + attributeProviders += AsciidoctorAttributeProvider { mapOf( "jupiter-version" to version, - "platform-version" to project.property("platformVersion"), - "vintage-version" to project.property("vintageVersion"), + "platform-version" to platformVersion, + "vintage-version" to vintageVersion, "bom-version" to version, "junit4-version" to libs.versions.junit4.get(), "apiguardian-version" to libs.versions.apiguardian.get(),