From c9ce08041120dbc7018232001766cc244b9255b5 Mon Sep 17 00:00:00 2001 From: Silvio Giebl Date: Wed, 15 Feb 2023 11:26:42 +0100 Subject: [PATCH 1/2] Fix GitHub action badge --- README.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.adoc b/README.adoc index 229900a..ccecba7 100644 --- a/README.adoc +++ b/README.adoc @@ -9,7 +9,7 @@ image:https://img.shields.io/badge/Extension_Type-Monitoring-orange?style=for-the-badge[Extension Type] image:https://img.shields.io/github/v/release/hivemq/hivemq-influxdb-extension?style=for-the-badge[GitHub release (latest by date),link=https://github.com/hivemq/hivemq-influxdb-extension/releases/latest] image:https://img.shields.io/github/license/hivemq/hivemq-influxdb-extension?style=for-the-badge&color=brightgreen[GitHub,link=LICENSE] -image:https://img.shields.io/github/workflow/status/hivemq/hivemq-influxdb-extension/CI%20Check/master?style=for-the-badge[GitHub Workflow Status (branch),link=https://github.com/hivemq/hivemq-influxdb-extension/actions/workflows/check.yml?query=branch%3Amaster] +image:https://img.shields.io/github/actions/workflow/status/hivemq/hivemq-influxdb-extension/check.yml?branch=master&style=for-the-badge[GitHub Workflow Status,link=https://github.com/hivemq/hivemq-influxdb-extension/actions/workflows/check.yml?query=branch%3Amaster] == Purpose From 827cb71201a900690badfc96dd820013619a8793 Mon Sep 17 00:00:00 2001 From: Silvio Giebl Date: Wed, 15 Feb 2023 11:38:11 +0100 Subject: [PATCH 2/2] Remove prepareAsciidoc task by configuring asciidoctor directly --- build.gradle.kts | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index d64aa4d..cc3feb4 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -15,6 +15,12 @@ hivemqExtension { startPriority.set(1000) mainClass.set("$group.influxdb.InfluxDbExtensionMain") sdkVersion.set("${property("hivemq-extension-sdk.version")}") + + resources { + from("LICENSE") + from("README.adoc") { rename { "README.txt" } } + from(tasks.asciidoctor) + } } dependencies { @@ -22,21 +28,10 @@ dependencies { implementation("org.apache.commons:commons-lang3:${property("commons-lang3.version")}") } -/* ******************** resources ******************** */ - -val prepareAsciidoc by tasks.registering(Sync::class) { - from("README.adoc").into({ temporaryDir }) -} - tasks.asciidoctor { - dependsOn(prepareAsciidoc) - sourceDir(prepareAsciidoc.map { it.destinationDir }) -} - -hivemqExtension.resources { - from("LICENSE") - from("README.adoc") { rename { "README.txt" } } - from(tasks.asciidoctor) + sourceDirProperty.set(layout.projectDirectory) + sources("README.adoc") + secondarySources { exclude("**") } } /* ******************** test ******************** */