Login  Register

Asciidoctor Gradle Plugin Suite: ^ Unresolved reference: AsciidoctorTask

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Asciidoctor Gradle Plugin Suite: ^ Unresolved reference: AsciidoctorTask

Peter Vittali
2 posts
Hi

1) which repository do I need to add in order to get  

id("org.asciidoctor.jvm.convert") version "3.0.0-alpha.4-SNAPSHOT"

I have :

pluginManagement {
    repositories {
        jcenter()
        gradlePluginPortal()

    }
}

but it fails to download this version,

I can download  version "3.0.0-alpha.3" , though.

2) This build.gradle.kts fails:

plugins {
    id("org.asciidoctor.jvm.convert") version "3.0.0-alpha.3" apply false
}

subprojects {
    apply(plugin = "org.asciidoctor.jvm.convert")
    tasks {
        "asciidoctor"(AsciidoctorTask::class) {
            sourceDir = file("docs")
            sources(delegateClosureOf<PatternSet> {
                include("toplevel.adoc", "another.adoc", "third.adoc")
            })
            outputDir = file("build/docs")
        }
    }
}

Script compilation error:

  Line 8:         "asciidoctor"(AsciidoctorTask::class) {
                                ^ Unresolved reference: AsciidoctorTask

Thanks
Peter