From 4a9dfb72a965f81ba3f113021984457130ab3101 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 15 Nov 2024 17:07:12 -0600 Subject: [PATCH] build(bug): cherry pick #16626 into release 0.56 (#16628) Signed-off-by: Roger Barker --- .../main/kotlin/com.hedera.gradle.maven-publish.gradle.kts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gradle/plugins/src/main/kotlin/com.hedera.gradle.maven-publish.gradle.kts b/gradle/plugins/src/main/kotlin/com.hedera.gradle.maven-publish.gradle.kts index 43667a50aa3a..934828ee16b3 100644 --- a/gradle/plugins/src/main/kotlin/com.hedera.gradle.maven-publish.gradle.kts +++ b/gradle/plugins/src/main/kotlin/com.hedera.gradle.maven-publish.gradle.kts @@ -73,13 +73,14 @@ val maven = url = "https://www.hashgraph.com/" inceptionYear = "2016" + // this field must be present. Default to empty string. description = providers .fileContents(layout.projectDirectory.file("../description.txt")) .asText - .orElse(provider { project.description }) + .orElse(provider(project::getDescription)) .map { it.replace("\n", " ").trim() } - .orNull + .orElse("") organization { name = "Hedera Hashgraph, LLC"