BUILD FAILED: Generating asdoc

patrick.wood's Avatar

patrick.wood

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 gradle.build lives:

$ gradle asdoc

gradle.build

buildscript {
    repositories {
        mavenCentral()
    }
    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 = [
    'src'
]
dependencies { 
    external fileTree(
        dir: '../../adunit/build/production/InteractiveAsset/', include: 'interactiveAsset.swc'
    )
    external files("libs/greensock.swc")
}
fatSwc = true
asdoc.outputDir = 'docs'

ERROR

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

    Hi,

    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 http://www.gradle.org/docs/2.0/release-notes#tasks-cannot-be-change...) 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

Generic

? 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

Recent Discussions

24 Jun, 2017 02:18 PM
10 Jun, 2017 04:16 PM
24 Mar, 2017 07:10 PM
19 Mar, 2017 04:39 AM
22 Jan, 2017 07:46 AM

 

11 Oct, 2016 01:18 PM
20 Sep, 2016 04:36 PM
06 Sep, 2016 08:05 PM
03 Aug, 2016 11:15 AM
01 Jun, 2016 05:20 PM
03 May, 2016 09:17 PM