BUILD FAILED: Generating asdoc

patrick.wood's Avatar


11 Sep, 2014 12:40 AM

I'm trying to generate docs for a SWC lib project. I'm running this command from project root where lives:

$ gradle asdoc

buildscript {
    repositories {
    dependencies {
        classpath group: 'org.gradlefx', name: 'gradlefx', version: '0.8.3'
apply plugin: 'gradlefx'
flexHome = '/Applications/Adobe Flash Builder 4.7/sdks/4.5.1'
version = '1.0-SNAPSHOT'
type = 'swc'
frameworkLinkage = 'external'       // The default for a 'swc' library project is 'external'
srcDirs = [
dependencies { 
    external fileTree(
        dir: '../../adunit/build/production/InteractiveAsset/', include: 'interactiveAsset.swc'
    external files("libs/greensock.swc")
fatSwc = true
asdoc.outputDir = 'docs'


Execution failed for task ':asdoc'.

Cannot call TaskInputs.dir(Object) on task ':asdoc' after task has started execution.

I'm new to Gradle so there's that. What do I have wrong in the build file and am I running it correctly?

  1. Support Staff 1 Posted by Yennick Trevels on 11 Sep, 2014 07:25 AM

    Yennick Trevels's Avatar


    I think you're using Gradle 2.0, which is why you are getting this error, because GradleFx isn't compatible with it yet.
    In Gradle 2.0 they introduced a change (see which breaks some of the GradleFx code.

    There's already an issue created for Gradle 2.0 support in GradleFx, so it's on my plate (or anyone else who wants to fix it) :)

    Using any version lower than 2.0 should work

  2. 2 Posted by patrick.wood on 11 Sep, 2014 03:50 PM

    patrick.wood's Avatar

    Rolled back to 1.8 and we are golden! Thanks Yennick.

    On Thursday, September 11, 2014, Yennick Trevels <
    [email blocked]> wrote:

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac