Skip to content

Commit

Permalink
Remove prepareAsciidoc task by configuring asciidoctor directly
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtSilvio committed Feb 16, 2023
1 parent c0063d2 commit 9a94696
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,23 @@ 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 {
implementation("com.izettle:metrics-influxdb:${property("metrics-influxdb.version")}")
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 ******************** */
Expand Down

0 comments on commit 9a94696

Please sign in to comment.